Kotlin / kotlin-fullstack-sample

Kotlin Full-stack Application Example
https://kotlinlang.org
Apache License 2.0
1.21k stars 169 forks source link

unable to start forntend #7

Closed oshai closed 7 years ago

oshai commented 7 years ago

When running: ./gradlew frontend:run I got this error: webpack-dev-server exited with exit code 1, ... .../kotlin-fullstack-sample/frontend/build/node_modules/webpack/lib/webpack.js:7 const Compiler = require("./Compiler"); ^^^^^ SyntaxError: Use of const in strict mode.

Any help will be appreciated.

cy6erGn0m commented 7 years ago

Looks like you have some unusual nodejs version or something in your environment? don't you have any special settings?

cy6erGn0m commented 7 years ago

Doesn't this answer help to resolve your issue? http://stackoverflow.com/questions/36789889/syntaxerror-use-of-const-in-strict-mode

oshai commented 7 years ago

Thanks! that fixed it.