Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bug with Webpack 5 #10

Closed
svperfecta opened this issue Nov 6, 2022 · 1 comment
Closed

Bug with Webpack 5 #10

svperfecta opened this issue Nov 6, 2022 · 1 comment

Comments

@svperfecta
Copy link

Hi there - There seems to be a bug in the latest version of the package. I'm using it with Webpack 5.

ERROR in ./src/components/models/torus/torus.vs
Module build failed (from ./node_modules/ts-shader-loader/lib/index.js):
Error: Cannot find module 'fs/promises'
Require stack:
-/node_modules/ts-shader-loader/lib/index.js
- /node_modules/loader-runner/lib/loadLoader.js
- /node_modules/loader-runner/lib/LoaderRunner.js
- /node_modules/webpack/lib/NormalModuleFactory.js

I haven't looked into the error to far yet, but reverting to 1.0.6 fixes it, though NPM Audit notes that there is a security issue with a dependency.

This is potentially related [webpack/webpack-cli/issues/1612]

@mentos1386
Copy link
Owner

mentos1386 commented Nov 6, 2022

Hm interesting. What version od Nodejs are you using?

The "fs/promises" was added in v14[1]. Make sure you are using at least that or newer.

[1] https://nodejs.org/api/fs.html#promises-api

@mentos1386 mentos1386 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants