-
-
Notifications
You must be signed in to change notification settings - Fork 933
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: Webpack Compilation Error ./node_modules/@faker-js/faker/dist/esm/chunk-4J2PVEV7.mjs 1:1430 #1073
Comments
Which version of node are you using? |
And which version of webpack! |
Have the same issue when using it in a cypress project. My project dependencies:
Version 10.1.0 of cypress seems to user "webpack": "^4.44.2". I'm using npm 6.14.5 and node v12.18.1. Can't speak for @foreverchaos but the issue seems the same. Hope it helps. |
Since v7 we officially dropped node v12 support, and require at least node v14 |
I have same issue using faker js with cypress in my angular project.
npm install --save-dev @faker-js/faker
|
Same error on a Cypress project:
"devDependencies": {
"@faker-js/faker": "^7.2.0",
"@wdio/allure-reporter": "^7.19.7",
"@wdio/cli": "^7.19.7",
"@wdio/local-runner": "^7.19.7",
"@wdio/mocha-framework": "^7.19.7",
"@wdio/spec-reporter": "^7.19.7",
"chromedriver": "^101.0.0",
"cypress": "^10.1.0",
"wdio-chromedriver-service": "^7.3.2"
},
}
|
Same error node 16, cypress 10 |
UPDATE: ORIGINAL: |
Yeah, we are thinking it's not an issue with node14, but totally with incompatible to webpack v4 In my opinion, and please do NOT take that set in stone, but really just my opinion, webpack 5.73.0 is the current version and v5 is out for 2 years now |
Oh and I definitely need to talk to @JessicaSachs when she is available again... because of Cypress |
Same error node 16 :( |
Hey. Yeah, this is related to faker not polyfilling back far enough in the
browser bundle. Nothing to do with Node.
6.x doesn’t have this issue, I would revert back to 6.x if you’re running
into this error.
…On Fri, Jun 17, 2022 at 10:41 AM DevDev ***@***.***> wrote:
Same error node 16 :(
Cypress 10
—
Reply to this email directly, view it on GitHub
<#1073 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVL4BG6SNHVNKYMMS6AIKTVPSFAPANCNFSM5YZXXOGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@foreverchaos @MitosisByProxy @Samyssmile @danheim @agustindangelo @codedevdev Please checkout the newest version https://github.com/faker-js/faker/releases/tag/v7.3.0 |
This resolves the issue! Thanks for the effort! |
Describe the bug
Error: Webpack Compilation Error
./node_modules/@faker-js/faker/dist/esm/chunk-Y64C4BL4.mjs 1:1430
Module parse failed: Unexpected token (1:1430)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
Reproduction
Additional Info
version: 7.2.0
The text was updated successfully, but these errors were encountered: