-
Notifications
You must be signed in to change notification settings - Fork 28
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
Webpack: Unexpected token #51
Comments
try with a newer node |
I have node 15 installed |
try higher, like v16.8.0 |
It seems like that this library is written in es@next, meaning the that it has features that are in the pipeline but not officially released, so webpack does not know how to deal with them. Do you know what I should do? Edit: I already tried setting the target in the tsconfig to "ESNext". |
Update your dependencies |
node/npm makes it very easy to clean install everything if you have versioning or dependency issues since all the relevant data is in your local folder. Run npm uninstall all your dependencies ( |
I have updated my dependencies. The problem is, that I use vue cli 3 for my project which still uses webpack 4 and not 5... |
You need to open an issue there then |
So I assume this issue gets resolved if I use a newer version of webpack. |
I dont know if this is my fault, but it seems like that there is some kind of typo or some sort because webpack cant seem to parse this module.
The error:
Is this line supposed to mean something like this:
value[0].type ? value[0].type : 'end'
?The text was updated successfully, but these errors were encountered: