-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Module parse failed: Unexpected token (107:28) #43960
Comments
Hello @minzunim :) I would suggest, your Babel configuration supports modern JavaScript features. First, check that the |
It doesn't look like this bug report has enough info for one of us to reproduce it. |
Since the issue is missing key information and has been inactive for 7 days, it has been automatically closed. If you wish to see the issue reopened, please provide the missing information. |
For me this issue was related to using webpack 4.
|
Thank you for your advice! ❤️ Actually, I had resolved the issue by downgrading the version of @mui/base and installing the package. So the current resolutions option in my package.json looks like this:
However, instead of this approach, I want to resolve the issue by upgrading the webpack version to 5, as you suggested. So I looked into my package.json and found that webpack isn’t explicitly installed. Then, when I checked by running the command yarn list --pattern "webpack", I got the following dependency tree.
What should I do to successfully install webpack version 5? |
@akravchukabto
after that,
As a result, we succeeded in building! |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @minzunim How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
I ran yarn build as usual, but I encountered the following error:
I didn't install any additional libraries before running the build, and I ran yarn install --ignore-engines (this isn't the first time I used --ignore-engines, I’ve used the same option for builds before). Could you suggest a potential solution?
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
node.js 16.14.1
react 17.0.2
"@mui/lab": "^5.0.0-alpha.143",
"@mui/material": "^5.14.8",
"@mui/x-tree-view": "^6.0.0-beta.0",
Search keywords: Module parse failed, useModal
Search keywords:
The text was updated successfully, but these errors were encountered: