Skip to content

remix @sentry/profiling-node  #11992

Closed as not planned
Closed as not planned
@jasonloeve

Description

@jasonloeve

Is there an existing issue for this?

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

  1. Follow the docs at https://docs.sentry.io/platforms/javascript/guides/remix/profiling/#prerequisites to setup profiling in a new remix application (Hydrogen).
  2. 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

No one assigned

    Labels

    Package: remixIssues related to the Sentry Remix SDKStale

    Type

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions