-
Notifications
You must be signed in to change notification settings - Fork 234
Closed
Labels
Description
I get this error when creating production build.
Failed to compile.
static/js/main.955798b7.js from UglifyJs
Unexpected token: name (Simple) [./~/cbor/lib/simple.js:9,0][static/js/main.955798b7.js:10295,6]
error Command failed with exit code 1.
Content at static/js/main.955798b7.js:10295,6
class Simple {
^
Instructions to reproduce:
create-react-app test
cd test
yarn add autobahn
# In src/App.js, append the following line:
import autobahn from 'autobahn';
yarn run build
I am very new to this. Here are my thoughts:
I think the discussion is facebook/create-react-app#984 (comment) is relevant here. It mentions that ES6 syntax in dependencies is not supported by create-react-app
. If that's the case, can we transpile before publishing the autobahn
npm module?
jerousseau and adrlen