Skip to content

Cannot turn off es5 compile #4948

Closed
Closed
@disrael

Description

@disrael

In package.json

"browserslist": {
"development": [
"last 1 chrome versions"
],
"production": [
"last 1 chrome versions"
]
},
"devDependencies": {
"enzyme": "^3.5.0",
"react-scripts": "2.0.0-next.a671462c",
"redux-logger": "^3.0.6",
"redux-testkit": "^1.0.6",
"selenium-webdriver": "^4.0.0-alpha.1",
"source-map-explorer": "^1.6.0",
"standard": "^11.0.1"
}

but

(main) disrael@disrael-Lemur:~/dev/uclusion_web_ui$ npm run-script build

[email protected] build /home/disrael/dev/uclusion_web_ui
react-scripts build

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

../javascript_sdk/src/uclusion.js:14 

Read more here: http://bit.ly/2tRViJ9

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: react-scripts build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Where the error message is pointing to issues compiling to es5.

#4421 was closed but without sufficient documentation to achieve an es6 only compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions