-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
unexpected ERR_PACKAGE_PATH_NOT_EXPORTED
thrown
#24
Comments
What behavior are you looking for?
If you do: console.log(moduleResolve('@isnotdefined/stylelint-plugin', new URL(import.meta.url), new Set(['node', 'import']))) It works. |
It looks like the docs do currently say that I can remove that in the docs. Is that okay? |
I think the default options should be same? Or why not? I use |
It’s an internal API that allows you to specify I think it’s the other way around: use
I’m not really against this idea, but it’s also maybe a breaking change? So changing the docs to match the code ( |
(It seems I misread And also considering the most usage case should use |
99% of users should not use Perhaps this is not explained well in the docs. Even if we change the |
We're using When I change to use |
* fix: add missing `conditions` param for `moduleResolve` related wooorm/import-meta-resolve#24 * refactor: remove unnecessary `tryResolveId`
They are different indeed. That does not necessarily mean you should use
To use |
Reproduction: https://github.com/JounQin/test/tree/repro/import-meta-resolve
Branch:
repro/import-meta-resolve
Steps:
The text was updated successfully, but these errors were encountered: