Comments (2)
Yes, that is indeed strange. I tried to reproduce it and could not (on GitHub Codespaces, which I was hoping was similar enough to GitHub Actions):
$ npm init -y
$ npm i esbuild @sentry/node @sentry/profiling-node
$ cat esbuild.mjs
import esbuild from 'esbuild';
esbuild.buildSync({
platform: 'node',
entryPoints: ['./index.js'],
outdir: './dist',
target: 'esnext',
format: 'cjs',
bundle: true,
loader: { '.node': 'copy' },
});
$ cat index.js
const Sentry = require('@sentry/node');
// This import contains statically analyzable .node binaries, I attempt to build
// it before it is published to ensure all of the precompiled binaries are included.
const Profiling = require('@sentry/profiling-node');
$ node esbuild.mjs
$ ls -l dist/
total 3712
-rw-rw-rw- 1 codespace codespace 1664947 Jan 20 04:35 index.js
-rw-rw-rw- 1 codespace codespace 104229 Jan 20 04:35 sentry_cpu_profiler-darwin-arm64-108-J4VX6HDF.node
-rw-rw-rw- 1 codespace codespace 104229 Jan 20 04:35 sentry_cpu_profiler-darwin-arm64-115-N2RQEDBB.node
-rw-rw-rw- 1 codespace codespace 103813 Jan 20 04:35 sentry_cpu_profiler-darwin-arm64-93-JTVX7DGV.node
-rw-rw-rw- 1 codespace codespace 122368 Jan 20 04:35 sentry_cpu_profiler-darwin-x64-108-THJXIYCS.node
-rw-rw-rw- 1 codespace codespace 122368 Jan 20 04:35 sentry_cpu_profiler-darwin-x64-115-WBJYZZB7.node
-rw-rw-rw- 1 codespace codespace 105552 Jan 20 04:35 sentry_cpu_profiler-darwin-x64-93-4V264VYW.node
-rw-rw-rw- 1 codespace codespace 67296 Jan 20 04:35 sentry_cpu_profiler-linux-arm64-glibc-108-6TU3ZBZ4.node
-rw-rw-rw- 1 codespace codespace 67296 Jan 20 04:35 sentry_cpu_profiler-linux-arm64-glibc-115-6TU3ZBZ4.node
-rw-rw-rw- 1 codespace codespace 67328 Jan 20 04:35 sentry_cpu_profiler-linux-arm64-glibc-93-KYRDUKU2.node
-rw-rw-rw- 1 codespace codespace 65992 Jan 20 04:35 sentry_cpu_profiler-linux-arm64-musl-108-3CATRQ4S.node
-rw-rw-rw- 1 codespace codespace 65992 Jan 20 04:35 sentry_cpu_profiler-linux-arm64-musl-115-3CATRQ4S.node
-rw-rw-rw- 1 codespace codespace 66032 Jan 20 04:35 sentry_cpu_profiler-linux-arm64-musl-93-2JNCVMF6.node
-rw-rw-rw- 1 codespace codespace 74600 Jan 20 04:35 sentry_cpu_profiler-linux-x64-glibc-108-2BYGENM7.node
-rw-rw-rw- 1 codespace codespace 74600 Jan 20 04:35 sentry_cpu_profiler-linux-x64-glibc-115-2BYGENM7.node
-rw-rw-rw- 1 codespace codespace 74640 Jan 20 04:35 sentry_cpu_profiler-linux-x64-glibc-93-6MUQUDKP.node
-rw-rw-rw- 1 codespace codespace 72472 Jan 20 04:35 sentry_cpu_profiler-linux-x64-musl-108-IR7X6F5S.node
-rw-rw-rw- 1 codespace codespace 72472 Jan 20 04:35 sentry_cpu_profiler-linux-x64-musl-115-IR7X6F5S.node
-rw-rw-rw- 1 codespace codespace 72896 Jan 20 04:35 sentry_cpu_profiler-linux-x64-musl-93-K7ZZ352F.node
-rw-rw-rw- 1 codespace codespace 195072 Jan 20 04:35 sentry_cpu_profiler-win32-x64-108-MW6G37UY.node
-rw-rw-rw- 1 codespace codespace 195072 Jan 20 04:35 sentry_cpu_profiler-win32-x64-115-RC2M3MXR.node
-rw-rw-rw- 1 codespace codespace 195584 Jan 20 04:35 sentry_cpu_profiler-win32-x64-93-WG45FOPP.node
Do you perhaps somehow have a really old copy of esbuild getting run instead of the latest one? That's really the only thing I can think of that might cause this. The error for this situation no longer contains that error message. That error message was changed away from that text over two years ago in 2021 (see 2586e4f
) which corresponds to esbuild version 0.14.1. Version 0.14.0 (released in November 2021) was the most recent version to contain the error message that you posted.
from esbuild.
@evanw I suspected something like this as well, but I didn't see any place where we'd be using such an old esbuild version. Thank you for confirming it's not an esbuild issue, I will close this now and just report back if there is anything related to the tooling in our repo which might be the source of this error. Thank you!
from esbuild.
Related Issues (20)
- CSS transforms can break nested selectors HOT 4
- Feature Request: Allow absolute paths for resolved chunks HOT 3
- Dynamic import issue when using react hook useEffect inside a remote component HOT 4
- Track which entryfile changed
- Glob pattern for `copy` file loader HOT 2
- Forcing node_modules resolution with the `resolve` function HOT 2
- punycode should be 'external' but bundled ? HOT 2
- Control module bundle dividers HOT 2
- [ERROR] Unexpected end of file in JSON ../jsconfig.json:18:0 - File does not exist in project and node_modules HOT 1
- `OnLoad` in custom plugin is called for disabled modules
- Specifying where compiled CSS files stored
- Assigning to the variable `name` doesnโt work when bundling to ESM output HOT 2
- [Documentation] Document the failure mode for unsupported node-specific features in dependencies HOT 1
- serve proxy with http2 possible? HOT 1
- A crash happened between switches of branches HOT 1
- Random "all goroutines are asleep - deadlock!" on a build HOT 2
- "all goroutines are asleep - deadlock!" on a build HOT 7
- esbuild + ESM + NodeJS + Typescript troubles HOT 6
- Different behaviour between external path and external package
- [Feature Request]: extend `onResolve` plugin hook to include import attributes in `import-statement`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esbuild.