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

Cannot find package 'pp-finder' imported from /workspace/target/express/ #2

Open
qu35t-code opened this issue Aug 29, 2023 · 2 comments

Comments

@qu35t-code
Copy link

Hello,

I tried to replicate your setup and PoC but it doesn't seem to work as it should. An idea ?

image image
(node:3281) ExperimentalWarning: Custom ESM Loaders is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

node:internal/process/esm_loader:46
      internalBinding('errors').triggerUncaughtException(
                                ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'pp-finder' imported from /workspace/target/express/
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:782:9)
    at moduleResolve (node:internal/modules/esm/resolve:831:20)
    at defaultResolve (node:internal/modules/esm/resolve:1036:11)
    at nextResolve (node:internal/modules/esm/hooks:733:28)
    at Hooks.resolve (node:internal/modules/esm/hooks:242:30)
    at #getModuleJob (node:internal/modules/esm/utils:129:41)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/utils:133:44)
    at ModuleLoader.import (node:internal/modules/esm/loader:227:28)
    at initializeHooks (node:internal/modules/esm/utils:156:58) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v20.5.1
@qu35t-code
Copy link
Author

Damn same issue #1 - npm install pp-finder + node --experimental-loader pp-finder index.js and it works

@qu35t-code
Copy link
Author

Quick note @B-i-t-K,

The README should be updated because npm install -g pp-finder does not work while npm install pp-finder does !

@qu35t-code qu35t-code reopened this Aug 29, 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

1 participant