-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Import declarations may only appear at top level of a module #6
Comments
can you show me where the error appear? |
It only appears when I add the import line on a layout view, which is the only one I have for the app. I'm a few hours away from demo hour but I will get an app example to confirm the problem later. |
okay, it seems it's just a question of some code being before an import statement, very curious, I use this thing in all my projects and never had this error, I can try to debug it with you if you are interested |
I used redux-notifications and it worked. That too, has some problems, which I can live with for now. Still I like to check to create app to confirm the problem with this later. |
I'm experiencing this error. I haven't actually used the import anywhere; the error is thrown because the module is in es6 and my webpack fails to transpile it, for some reason. Can you share your webpack and babelrc? Here are my files:
i can open a new issue if you'd like, thanks. |
I get this error:
import declarations may only appear at top level of a module
I followed suggestions. Not sure what's wrong. I use the latest version of Redux and React.js.
The text was updated successfully, but these errors were encountered: