-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
npm start
/ npm run dev
fail with "index.js: SyntaxError: Unexpected token import"
#462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
npm start
/ npm run dev
fail with "index.js: SyntaxError: Unexpected token import"
I believe this is related to Issue 429. |
Issue I believe is related to this commit: #399. I'm not sure why this was changed. I'll make a PR to update it. |
@brennen if you pull the latest from master you'll be good to go. |
Thanks all! |
i solve this problem by change " node ./bin/www" by "babel-node ./bin/www" in package.json file ,of cources npm install some babel plugins |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Seems to happen for both
npm start
andnpm run dev
, even afternpm run build
:I gather that this has to do with the version of
index.js
getting run here not getting transformed by Babel, but after that I'm a bit lost. I have a couple of other reports of this issue, so I think it's tripping up users.Full debug log here: npm-debug.txt
The text was updated successfully, but these errors were encountered: