SyntaxError: Unexpected token import on webpack build #18736
Unanswered
kahibalo01
asked this question in
Q&A
Replies: 1 comment 3 replies
-
please run |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm not sure if it is okay to ask here, I've looked everywhere and cannot find the answer.
Running
webpack --mode production
gives me no errors on my machine.But on a colleague's machine, it spits out this error:
node version: 16.16.0
npm version: 8.11.0
package.json:
We've checked if we have the same node and npm versions, and reinstalled those using nvm, cleaned npm cache, node_modules, and package-lock, but to no avail. We've also tried
npm install
from a fresh project, nada.It would really help if you can point me to the right direction. I'm pretty lost here.
Beta Was this translation helpful? Give feedback.
All reactions