question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module '@opentelemetry/sdk-trace-base'

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kicutcommented, Nov 9, 2021

@schickling yes now working fine, when is this released?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found