Skip to content
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

Debug nodejs ES6? #21

Closed
zonorion opened this issue May 5, 2017 · 3 comments
Closed

Debug nodejs ES6? #21

zonorion opened this issue May 5, 2017 · 3 comments

Comments

@zonorion
Copy link

zonorion commented May 5, 2017

Hi all,
I wanna debug nodejs es6 project and i used 'import'. Then i got error

Unexpected token import

I try config arguments

--exec babel-node --presets es2015,stage-2

But it still not working. Could you tell me how do i have to config?
Thanks!

@willyelm
Copy link
Owner

willyelm commented May 5, 2017

How are you building the application do you have the compiled files with source maps available? our you are using register?

@zonorion
Copy link
Author

zonorion commented May 5, 2017

@willyelm
Thank you for your reply, i try re-config then it's working fine.
Maybe i miss some configs :)

@chrisvoo
Copy link

chrisvoo commented Nov 8, 2018

@zonorion what did you do to make it work? I'm using it inside a react app, which I usually start with "start": "npm run build-css && run-p -ncr watch-css start-js".
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants