You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the following when using node v22 and yarn 4.5.3 with pnp and upgrading to most recent version of nestjs-otel
Error: nestjs-otel tried to access tslib, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: tslib
Required by: nestjs-otel@virtual:<hash>#npm:6.1.1 (via /project-path/.yarn/__virtual__/nestjs-otel-virtual-<hash>/0/cache/nestjs-otel-npm-6.1.1-<hash>zip/node_modules/nestjs-otel/lib/)
Require stack:
- /project-path/.yarn/__virtual__/nestjs-otel-virtual-<hash>/0/cache/nestjs-otel-npm-6.1.1-<hash>.zip/node_modules/nestjs-otel/lib/index.js
- /project-path/dist/instrumentation/instrumentation.module.js
- /project-path/dist/app.module.js
- /project-path/dist/main.js
at require$$0.Module._resolveFilename (/project-path/.pnp.cjs:<hash>:13)
at Function.<anonymous> (node:internal/modules/cjs/loader:1075:27)
at require$$0.Module._load (/project-path/.pnp.cjs:<hash>:31)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Module.<anonymous> (node:internal/modules/cjs/loader:1340:12)
at Hook._require.Module.require (/project-path/.yarn/cache/require-in-the-middle-npm-7.2.0-<hash>.zip/node_modules/require-in-the-middle/index.js:167:34)
at require (node:internal/modules/helpers:141:16)
at Object.<anonymous> (/project-path/.yarn/__virtual__/nestjs-otel-virtual-<hash>/0/cache/nestjs-otel-npm-6.1.1-<hash>.zip/node_modules/nestjs-otel/lib/index.js:3:17)
at Module._compile (node:internal/modules/cjs/loader:1546:14)
Node.js v22.11.0
The text was updated successfully, but these errors were encountered:
"tslib is not a dependency of angular itself. But rather a dependency of the TypeScript compiler when you enable TypeScript importHelpers. Any library that is compiled using importHelpers should always have a direct dependency on tslib and not rely on other libraries to install it."
It looks like you should be adding tslib as a direct dependency of your project.
Getting the following when using node v22 and yarn 4.5.3 with pnp and upgrading to most recent version of
nestjs-otel
The text was updated successfully, but these errors were encountered: