-
Notifications
You must be signed in to change notification settings - Fork 8
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
ERROR Unexpected token 'export' #91
Comments
I figure it out. Because this is a client side code, I need to set that in
But the error only happens when I run my nuxt app in my docker. if I run my nuxt app in host directly I won't have this error. |
I have not figured out why I did not get this error if I run my nuxt app in host directly. Now I understand why that happens I think it should happen when I run my nuxt app in host directly. BTW, expect for setting |
Hello @qiulang! I believe you're right about the import statement for .js on the Readme - that will be updated in the next version of Bellhop. I'm glad you were able to work out the reference in the nuxt config file! It sounds like the error you're seeing only occurs in the Docker environment. The next obvious place to look is at the differences between the docker and host environments. The first thing that comes to mind is their respective versions of Node.js. Can you verify they're on the same version? Any other differences in environment that you may have set up inside your Docker instance? |
I used bellhop in my nuxt v2 project, import with es6 module
import { Bellhop } from 'bellhop-iframe'
But I hit the error
SyntaxError: Unexpected token 'export'
In my project import other all modules using es6 , e.g
So I assume there must some setting related to module that causes this error. I tried to tinker with
nuxt.config.js
, e.g. transpile bellhop but I failed.The text was updated successfully, but these errors were encountered: