-
Notifications
You must be signed in to change notification settings - Fork 40
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
SyntaxError when running 'pnpm dev' command in the cloned repository. #21
Comments
Ive been fighting this for 3 hours WHAT IS GOING ON :O |
this is not working for me tho I keep getting the same error on |
Same error for me too. |
To me, it's not just happening with pnpm, but with npm, too. :/ |
Same error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running the 'pnpm dev' command in the cloned repository, the following error occurs:
This error is related to the module '@opentelemetry/sdk-trace-base' and its named exports 'ConsoleSpanExporter' and 'SimpleSpanProcessor'. The error suggests that the requested module is a CommonJS module, which may not support importing named exports. Instead, it recommends importing via the default export.
Steps to Reproduce:
git clone https://github.com/contentlayerdev/next-contentlayer-example.git
cd next-contentlayer-example
pnpm i
pnpm dev
Expected Behavior:
The 'pnpm dev' command should run successfully without any syntax errors.
Actual Behavior:
The 'pnpm dev' command throws a SyntaxError related to the module '@opentelemetry/sdk-trace-base' and its named exports 'ConsoleSpanExporter' and 'SimpleSpanProcessor'. The error suggests importing via the default export instead.
Additional Information:
The text was updated successfully, but these errors were encountered: