-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Meta: BreakingPackage: nodeIssues related to the Sentry Node SDKIssues related to the Sentry Node SDK
Milestone
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
7.49.0
Framework Version
solid-start version 0.2.26
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
- Clone repro https://github.com/jchatard/sentry-solid
- cd sentry-solid
- pnpm install
- pnpm build
- pnpm start
I think if you get SvelteKit working, my guess is that Solid Start would almost identical.
The work done here: #7377
Was probably the way to go, but it was reverted.
Expected Result
- Application start and is reachable on port 3000
- The example exception is logged to Sentry.io https://github.com/jchatard/sentry-solid/blob/main/src/entry-server.tsx#L24
Actual Result
Server won't start with this output:
file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:26181
const httpModule = require('http');
^
ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and '/Users/jchatard/Desktop/sentry-solid/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
at Http.setupOnce (file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:26181:24)
at setupIntegration (file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:21977:17)
at file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:21965:7
at Array.forEach (<anonymous>)
at setupIntegrations (file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:21962:16)
at NodeClient.setupIntegrations (file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:22480:28)
at Hub.bindClient (file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:20241:14)
at initAndBind (file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:22946:7)
at init (file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:28588:3)
at file:///Users/jchatard/Desktop/sentry-solid/dist/server.js:30282:1
Node.js v18.9.0
ELIFECYCLE Command failed with exit code 1
rchl
Metadata
Metadata
Assignees
Labels
Meta: BreakingPackage: nodeIssues related to the Sentry Node SDKIssues related to the Sentry Node SDK
Projects
Status
No status
Status
No status