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

@sentry-internal/nitro-utils import warning #14661

Closed
Gregoire-Fremaux opened this issue Dec 11, 2024 · 6 comments · Fixed by #14662
Closed

@sentry-internal/nitro-utils import warning #14661

Gregoire-Fremaux opened this issue Dec 11, 2024 · 6 comments · Fixed by #14662

Comments

@Gregoire-Fremaux
Copy link

Environment

SaaS (https://sentry.io/)

What are you trying to accomplish?

Hello, in my Nuxt 3 Sentry integration, the frontend part works correctly, but on the backend side, which uses Nitro, Sentry is looking for a module that doesn't seem to be public in the yarn packages.

Is this intentional?

How are you getting stuck?

[8:53:23 AM]  WARN  "@sentry-internal/nitro-utils" is imported by "node_modules/@sentry/nuxt/build/module/runtime/plugins/sentry.server.js", but could not be resolved – treating it as an external dependency.

Cannot find any modules named @sentry-internal/nitro-utils on npm or yarn

Where in the product are you?

Issues

Link

No response

DSN

No response

Version

No response

@getsantry
Copy link

getsantry bot commented Dec 11, 2024

Assigning to @getsentry/support for routing ⏲️

@dalnoki dalnoki transferred this issue from getsentry/sentry Dec 11, 2024
@getsantry getsantry bot moved this from Waiting for: Support to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 11, 2024
@s1gr1d
Copy link
Member

s1gr1d commented Dec 11, 2024

It's failing on this warning as it is wrongfully detecting the package as external but it is not external.

Currently, you can only downgrade to 8.42.0. I disabled "fail on warn" in this PR and this is going to be released soon.

@mydea mydea changed the title nitro-utils @sentry-internal/nitro-utils warning Dec 11, 2024
@mydea mydea changed the title @sentry-internal/nitro-utils warning @sentry-internal/nitro-utils import warning Dec 11, 2024
Copy link
Contributor

A PR closing this issue has just been released 🚀

This issue was referenced by PR #14662, which was included in the 8.44.0 release.

@phooijenga
Copy link

phooijenga commented Dec 12, 2024

I'm still having this issue with 8.44.0:

node:internal/modules/esm/resolve:838
  throw new ERR_MODULE_NOT_FOUND(packageName, fileURLToPath(base), null);
        ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@sentry-internal/nitro-utils' imported from /Users/paul/.../.output/server/index.mjs
    at packageResolve (node:internal/modules/esm/resolve:838:9)
    at moduleResolve (node:internal/modules/esm/resolve:907:18)
    at defaultResolve (node:internal/modules/esm/resolve:1037:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:650:12)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:599:25)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:582:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:241:38)
    at ModuleJob._link (node:internal/modules/esm/module_job:132:49) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Downgrading to 8.42.0 works.

@mrjakebaker
Copy link

I get the same with 8.44.0

node .output/server/index.mjs                                                       
node:internal/errors:496
    ErrorCaptureStackTrace(err);
    ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@sentry-internal/nitro-utils' imported from /Users/.../.../.../.output/server/index.mjs
    at new NodeError (node:internal/errors:405:5)
    at packageResolve (node:internal/modules/esm/resolve:890:9)
    at moduleResolve (node:internal/modules/esm/resolve:939:20)
    at defaultResolve (node:internal/modules/esm/resolve:1132:11)
    at nextResolve (node:internal/modules/esm/loader:163:28)
    at ESMLoader.resolve (node:internal/modules/esm/loader:835:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40)
    at link (node:internal/modules/esm/module_job:76:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Node.js v18.18.2

@s1gr1d
Copy link
Member

s1gr1d commented Dec 12, 2024

Hy, unfortunately the PR from yesterday didn't fix the problem and I saw that something else was the issue. Fix comes soon: #14680

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants