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

Updating to 1.0.0 caused error trying to load non-existent module #2170

Open
Leekao opened this issue Jan 22, 2025 · 4 comments
Open

Updating to 1.0.0 caused error trying to load non-existent module #2170

Leekao opened this issue Jan 22, 2025 · 4 comments

Comments

@Leekao
Copy link

Leekao commented Jan 22, 2025

Describe the bug

After upgrading a working web application from 0.22.1 to 1.0.0 to enable IPV6 support I get this error when app is starting:

Unable to resolve some modules:

  "jose/errors" in [redacted]/node_modules/openid-client/build/index.js (os.osx.x86_64)

Node version is 20.18.0, reproduce on linux and mac.

Additional context

Running npm install jose openid-client --save did not help.

@cjihrig
Copy link
Contributor

cjihrig commented Jan 22, 2025

By any chance are you using Meteor? The only search results I'm finding for "Unable to resolve some modules" are related to Meteor users being unable to import modules that use the exports field in their package.json file (which is what jose is doing here). Examples: https://forums.meteor.com/t/how-to-import-npm-package-with-exports-field-in-package-json/57276, https://forums.meteor.com/t/upgrade-to-3-complaining-about-legacy-browser-modules/62741. This issue would also be relevant.

@Leekao
Copy link
Author

Leekao commented Jan 22, 2025

Yes, I'm using Meteor, I'm sorry I should've mentioned it, I will look into your links, thank you very much.

@cjihrig
Copy link
Contributor

cjihrig commented Jan 22, 2025

Cool. FYI, if it is that Meteor issue, then I think you will have trouble updating on the v0.x release line as well, as that same dependency has been updated on that line.

@cjihrig
Copy link
Contributor

cjihrig commented Jan 28, 2025

@Leekao were you able to determine if this is a Meteor issue? Can this be closed?

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