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

SyntaxError: 'import' and 'export' #1

Closed
edgehero opened this issue Oct 19, 2016 · 3 comments
Closed

SyntaxError: 'import' and 'export' #1

edgehero opened this issue Oct 19, 2016 · 3 comments

Comments

@edgehero
Copy link

I'm getting this error:

events.js:154
throw er; // Unhandled 'error' event
^
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'

How to see the debug? and what could be the cause?

@ro31337
Copy link
Owner

ro31337 commented Oct 19, 2016

Is it a new project? Hard to say what it is, mind publishing the code to github and post full error message?

@edgehero
Copy link
Author

Yes it was, but i solved it already.
i used the wrong import for a file.
this one made it work for me: import App from './components/app.jsx';

Its pretty cool what you did in this project, you saved hours of headache for me.

@ro31337 ro31337 closed this as completed Oct 19, 2016
@ro31337
Copy link
Owner

ro31337 commented Oct 19, 2016

@edgehero thanks, I closed this issue. I appreciate if you can tell a friend about this gulp plugin or share about your experience in a blog when you have time. 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

2 participants