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

'Unexpected token import' when building project with webpack #167

Open
andy-dorman opened this issue Sep 25, 2017 · 1 comment
Open

'Unexpected token import' when building project with webpack #167

andy-dorman opened this issue Sep 25, 2017 · 1 comment

Comments

@andy-dorman
Copy link

I'm looking into using ng-redux in order to refactor an existing project over to using redux. The project is currently built using webpack.

I've followed the Quick start guide, npm i --save-dev ng-redux but after a successful webpack compile I'm seeing an 'Unexpected token import' error in my browser console.

The offending line appears to be:

import baseGetTag from './_baseGetTag.js';

which looks like it's something lodash related perhaps?

If I open my app in firefox I get a syntax error, import declarations may only appear at top level

Has anyone had any similar issues? I'm sure I must be doing something wrong or missing something from my webpack config but I can't for the life of me see what.

@andy-dorman
Copy link
Author

ok, panic over - it would appear very necessary to babelify lodash scripts... Up and running now...

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

1 participant