catamphetamine / webpack-react-redux-server-side-render-example

A sample React/Redux/Webpack project with Server-Side Rendering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SyntaxError: Block-scoped declarations

gbishop opened this issue · comments

When I npm run dev I get a ton of errors like this:

/home/gb/tmp/webpack-react-redux-isomorphic-render-example/code/common/server entry.js:30
let folder = path.dirname(relative_path)
^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/home/gb/tmp/webpack-react-redux-isomorphic-render-example/code/api-server/entry.js:1:63)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
[nodemon] app crashed - waiting for file changes before starting...

I'm a newb so I'm likely doing something wrong.

Should be fixed now, pull the latest changes and try again

Thanks! Working now.

On Sat, Aug 20, 2016 at 8:14 AM, Nikolay notifications@github.com wrote:

Should be fixed now, pull the latest changes and try again


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#6 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAMFfLhLJU_1hEoyXmVZm2Sjf-IIz5mMks5qhu-kgaJpZM4JpD6q
.