Skip to content
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

typescript Module not found: Error: Can't resolve '#async_hooks' in 'F:\workproject\management-service\node_modules\p-limit' #73

Closed
liangdele opened this issue Nov 16, 2023 · 1 comment

Comments

@liangdele
Copy link

ERROR in ./node_modules/p-limit/index.js 2:0-43
Module not found: Error: Can't resolve '#async_hooks' in 'F:\workproject\management-service\node_modules\p-limit'
resolve '#async_hooks' in 'F:\workproject\management-service\node_modules\p-limit'
using description file: F:\workproject\management-service\node_modules\p-limit\package.json (relative path: .)
resolve as internal import
using imports field: async_hooks
Parsed request is a module
using description file: F:\workproject\management-service\node_modules\p-limit\package.json (relative path: .)
resolve as module
F:\workproject\management-service\node_modules\p-limit\node_modules doesn't exist or is not a directory
F:\workproject\management-service\node_modules\node_modules doesn't exist or is not a directory
looking for modules in F:\workproject\management-service\node_modules
single file module
using description file: F:\workproject\management-service\package.json (relative path: ./node_modules/async_hooks)
no extension
F:\workproject\management-service\node_modules\async_hooks doesn't exist
.tsx
F:\workproject\management-service\node_modules\async_hooks.tsx doesn't exist
.ts
F:\workproject\management-service\node_modules\async_hooks.ts doesn't exist
.js
F:\workproject\management-service\node_modules\async_hooks.js doesn't exist
F:\workproject\management-service\node_modules\async_hooks doesn't exist
F:\workproject\node_modules doesn't exist or is not a directory
F:\node_modules doesn't exist or is not a directory
@ ./src/main/nppv-report/app/query/NPPVMultipleDailyReportQuery.ts 20:34-52
@ ./src/main/nppv-report/NPPVReportModule.ts 20:39-90
@ ./src/main/main.ts 24:27-68
@ ./src/index.ts 7:15-37

webpack 5.89.0 compiled with 1 error in 16991 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! manage-service-ts@1.1.18 build: eslint src --ext .ts && webpack
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the manage-service-ts@1.1.18 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Lenovo\AppData\Roaming\npm-cache_logs\2023-11-16T08_34_47_721Z-debug.log

@sindresorhus
Copy link
Owner

This is a problem with Webpack. Open an issue on the Webpack issue tracker instead.

@sindresorhus sindresorhus closed this as not planned Won't fix, can't repro, duplicate, stale Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants