node-loader: process.dlopen: The specified module could not be found
I use node-loader
to load .node
files with webpack, however, it generates the output files as expected in dist
folder.
// dist/file.js
__webpack_require__.p =""
process.dlopen(module, __dirname + "/" + __webpack_require__.p + "sharp.node");
and sharp.node exists in the same dir. but I got this error
node-loader:
Error: The specified module could not be found.
D:\Downloads\__projects\dev\NodeJs\@eng-dibo\ngx\dist\ sharp.node
the path determined in the error message is correct and exists
minimal reproduction: https://github.com/lovell/sharp/issues/2517#issuecomment-767703678
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 22 (13 by maintainers)
thank you, @alexander-akait for your efforts ❤️