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/remix
SDK Version
7.114.0
Framework Version
^18.2.0
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
- Follow the docs at https://docs.sentry.io/platforms/javascript/guides/remix/profiling/#prerequisites to setup profiling in a new remix application (Hydrogen).
- Run npm dev / build etc (Node v20.12.1, npm v10.5.0)
Expected Result
The application to build out
Actual Result
Receiving the following errors
`✘ [ERROR] Could not resolve "os"
node_modules/@sentry/profiling-node/lib/index.js:3:19:
3 │ const os = require('os');
╵ ~~~~
The package "os" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "path"
node_modules/@sentry/profiling-node/lib/index.js:4:21:
4 │ const path = require('path');
╵ ~~~~~~
The package "path" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "worker_threads"
node_modules/@sentry/profiling-node/lib/index.js:8:31:
8 │ const worker_threads = require('worker_threads');
╵ ~~~~~~~~~~~~~~~~
The package "worker_threads" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "child_process"
node_modules/@sentry/profiling-node/node_modules/detect-libc/lib/detect-libc.js:6:29:
6 │ const childProcess = require('child_process');
╵ ~~~~~~~~~~~~~~~
The package "child_process" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "fs"
node_modules/@sentry/profiling-node/node_modules/detect-libc/lib/filesystem.js:6:19:
6 │ const fs = require('fs');
╵ ~~~~
The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
`
Metadata
Metadata
Assignees
Type
Projects
Status