Error: Cannot find module '@opentelemetry/sdk-trace-base'
See original GitHub issueI installed next js typescript with next-content layer. when running yarn dev
command, it returns error.
Repo: https://github.com/kicut/learn-nextjs-contentlayer
Error in Terminal:
➜ learn-nextjs-contentlayer git:(main) yarn dev
yarn run v1.22.17
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn - SWC minify beta enabled. https://nextjs.org/docs/messages/swc-minify-enabled
Error: Cannot find module '@opentelemetry/sdk-trace-base'
Require stack:
- /home/kicut/code/project/next-contentlayer/node_modules/@effect-ts/otel/Processor/Simple/index.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.mod._resolveFilename (/home/kicut/code/project/next-contentlayer/node_modules/next/dist/build/webpack/require-hook.js:171:28)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/kicut/code/project/next-contentlayer/node_modules/@effect-ts/otel/Processor/Simple/index.js:52:26)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/kicut/code/project/next-contentlayer/node_modules/@effect-ts/otel/Processor/Simple/index.js'
]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top Results From Across the Web
@opentelemetry/sdk-trace-base - npm
Start using @opentelemetry/sdk-trace-base in your project by running `npm i @opentelemetry/sdk-trace-base`. There are 220 other projects in ...
Read more >Missing dependencies for instrumentations when upgrading to ...
I'm updating @opentelemetry/auto-instrumentations-node from 0.27.1 ... error TS2307: Cannot find module 'aws-sdk' or its corresponding type ...
Read more >open-telemetry/opentelemetry-node - Gitter
this is an odd error. It looks like you're failing during the compile step. I don't get an error like that. Try running...
Read more >Node.js - OpenTelemetry
These dependencies are required to configure the tracing SDK and create spans. npm install @opentelemetry/sdk-node @opentelemetry/api. Exporter.
Read more >opentelemetry/sdk-trace-node v1.7.0 - npm.io
For manual instrumentation see the @opentelemetry/sdk-trace-base package. ... Please note: This module does not bundle any plugins.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There we go: 🚀
https://github.com/contentlayerdev/contentlayer/releases/tag/v0.0.29
@schickling yes now working fine, when is this released?