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.

@sentry/nextjs `transpileClientSDK` options not work in yarn berry workspace environment

See original GitHub issue

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/nextjs

SDK Version

7.15.0

Framework Version

12.3.1

Link to Sentry event

No response

Steps to Reproduce

  1. In next.config.js, I added transpileClientSDK: true option for supporting old browser users.

Expected Result

Sentry source code is transpiled to ES5

Actual Result

Sentry source code is not transpiled to ES5

Additional Resources

webpack: (config, options) => {
  config.module.rules.push({
    test: /\.+(js|jsx|mjs|ts|tsx)$/,
    use: options.defaultLoaders.babel,
    include: (filePath) => filePath.includes('@sentry'),
    type: 'javascript/auto',
  });
  return config;
},

References

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
rhavenzcommented, Oct 12, 2022

@codemilli Did you try to set the experimental.externalDir flag in next.config.js ?

1reaction
AbhiPrasadcommented, Oct 12, 2022

Hey thanks for writing in! @lobsterkatie is the expert on this so I’ll leave her to dig in further, but will take a look! If you manage to figure something out before hand, PRs are welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manual Setup for Next.js - Sentry Documentation
Learn how to set up the SDK manually.
Read more >
run nestjs application with yarn berry workspace monorepo
I guess the configure packagesExtension in .yarnrc.yml can be a solution. But i don't know how to set it up. Any one can...
Read more >
Plug'n'Play | Yarn - Package Manager
An overview of Plug'n'Play, a powerful and innovative installation strategy for Node.
Read more >
Building a Monorepo with Yarn 2 - Heroku Blog
Yarn 2 is officially supported by Heroku. Here's a popular use case for Yarn enhanced by Yarn 2: using workspaces to manage dependencies...
Read more >
Maël on Twitter: "7 The new `yarn workspaces foreach ...
2 But if you use PnP, and if a project doesn't list its dependencies, ... 7 The new `yarn workspaces foreach` command can...
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