React-redux-starter-kit: Error on npm start: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Created on 6 Nov 2016  路  3Comments  路  Source: davezuko/react-redux-starter-kit

Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Debug Log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: better-npm-run start
9 verbose stack Exit status 1
9 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:217:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:829:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd /Users/sfc/sandbox/react1
12 error Darwin 15.6.0
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
14 error node v4.6.1
15 error npm v2.15.9
16 error code ELIFECYCLE
17 error [email protected] start: better-npm-run start
17 error Exit status 1
18 error Failed at the [email protected] start script 'better-npm-run start'.
18 error This is most likely a problem with the react-redux-starter-kit package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error better-npm-run start
18 error You can get information on how to open an issue for this project with:
18 error npm bugs react-redux-starter-kit
18 error Or if that isn't available, you can get their info via:
18 error
18 error npm owner ls react-redux-starter-kit
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

Most helpful comment

I'm seeing the same. Fresh install of node 5.12.0 on windows

Edited line 59 in build\webpack.config.js

let errors = []

to

errors = []

...and that fixes it for me

All 3 comments

I'm seeing the same. Fresh install of node 5.12.0 on windows

Edited line 59 in build\webpack.config.js

let errors = []

to

errors = []

...and that fixes it for me

Same here, solved it with @wrabbit23 fix

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liubko picture liubko  路  4Comments

BigPrimeNumbers picture BigPrimeNumbers  路  4Comments

glifchits picture glifchits  路  3Comments

macnibblet picture macnibblet  路  3Comments

gilesbradshaw picture gilesbradshaw  路  5Comments