-
Notifications
You must be signed in to change notification settings - Fork 194
Open
timlrx/contentlayer2
#1Milestone
Description
When I run pnpm contentlayer build, I run into an error within node_modules and cannot resolve it.
Versions
"contentlayer": "^0.3.4",
"next": "13.4.9",Error Message
import { ConsoleSpanExporter, SimpleSpanProcessor } from "@opentelemetry/sdk-trace-base";
^^^^^^^^^^^^^^^^^^^
SyntaxError: Named export 'ConsoleSpanExporter' not found. The requested module '@opentelemetry/sdk-trace-base' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@opentelemetry/sdk-trace-base';
const { ConsoleSpanExporter, SimpleSpanProcessor } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
xkrsz, ozguruysal, rosszurowski, tifandotme, achntj and 42 more
Metadata
Metadata
Assignees
Labels
No labels