Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR in ./index.vr.coffee
- Module build failed: Error: Got an unexpected exception from the coffeescript compiler. The original exception was: SyntaxError: unknown: Unexpected token (15:11)
- (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)
- import coffee from 'coffee-loader!./file.coffee';
- import React from 'react'
- import {
- AppRegistry
- asset
- Pano
- Text
- View
- } from 'react-vr'
- export default class WelcomeToVR extends React.Component
- render: -> <View><Pano source={asset 'chess-world.jpg'}/></View>
- AppRegistry.registerComponent 'WelcomeToVR', => WelcomeToVR
- {
- (...)
- "devDependencies": {
- "babel-core": "^6.26.0",
- "babel-jest": "^19.0.0",
- "babel-preset-env": "^1.6.1",
- "babel-preset-react-native": "^1.9.1",
- "coffee-loader": "^0.9.0",
- "coffeescript": "^2.2.1",
- "jest": "^19.0.2",
- "react-devtools": "^2.5.2",
- "react-test-renderer": "16.0.0",
- "webpack": "^3.11.0",
- "webpack-dev-server": "^2.11.1",
- "xopen": "1.0.0"
- },
- (...)
- }
- module.exports = {
- entry: './index.vr.coffee',
- output: { filename: 'index.vr.js' },
- module: { rules: [ {
- test: /.coffee$/,
- use: [ {
- loader: 'coffee-loader',
- options: { transpile: {
- presets: ['env']
- } } }
- ]
- } ] }
- };
Add Comment
Please, Sign In to add comment