Guest User

Untitled

a guest
Feb 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. ERROR in ./index.vr.coffee
  2. Module build failed: Error: Got an unexpected exception from the coffeescript compiler. The original exception was: SyntaxError: unknown: Unexpected token (15:11)
  3. (The coffeescript compiler should not raise *unexpected* exceptions. You can file this error as an issue of the coffeescript compiler: https://github.com/jashkenas/coffee-script/issues)
  4.  
  5. import coffee from 'coffee-loader!./file.coffee';
  6. import React from 'react'
  7. import {
  8. AppRegistry
  9. asset
  10. Pano
  11. Text
  12. View
  13. } from 'react-vr'
  14.  
  15. export default class WelcomeToVR extends React.Component
  16. render: -> <View><Pano source={asset 'chess-world.jpg'}/></View>
  17.  
  18. AppRegistry.registerComponent 'WelcomeToVR', => WelcomeToVR
  19.  
  20. {
  21. (...)
  22. "devDependencies": {
  23. "babel-core": "^6.26.0",
  24. "babel-jest": "^19.0.0",
  25. "babel-preset-env": "^1.6.1",
  26. "babel-preset-react-native": "^1.9.1",
  27. "coffee-loader": "^0.9.0",
  28. "coffeescript": "^2.2.1",
  29. "jest": "^19.0.2",
  30. "react-devtools": "^2.5.2",
  31. "react-test-renderer": "16.0.0",
  32. "webpack": "^3.11.0",
  33. "webpack-dev-server": "^2.11.1",
  34. "xopen": "1.0.0"
  35. },
  36. (...)
  37. }
  38.  
  39. module.exports = {
  40. entry: './index.vr.coffee',
  41. output: { filename: 'index.vr.js' },
  42. module: { rules: [ {
  43. test: /.coffee$/,
  44. use: [ {
  45. loader: 'coffee-loader',
  46. options: { transpile: {
  47. presets: ['env']
  48. } } }
  49. ]
  50. } ] }
  51. };
Add Comment
Please, Sign In to add comment