Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESBuild failed #135

Open
CasperPas opened this issue Sep 10, 2024 · 0 comments
Open

ESBuild failed #135

CasperPas opened this issue Sep 10, 2024 · 0 comments

Comments

@CasperPas
Copy link

When I use ESBuild with my project, it failed with the following error:

hospital/api % node build.js
✘ [ERROR] Could not resolve require("./src/build/**/*/DTraceProviderBindings")

    node_modules/dtrace-provider/dtrace-provider.js:18:26:
      18 │     var binding = require('./src/build/' + builds[i] + '/DTraceProviderBindings');
         ╵                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 error
/workspaces/hospital/api/node_modules/esbuild/lib/main.js:1476
  let error = new Error(text);
              ^

Error: Build failed with 1 error:
node_modules/dtrace-provider/dtrace-provider.js:18:26: ERROR: Could not resolve require("./src/build/**/*/DTraceProviderBindings")
    at failureErrorWithLog (/workspaces/hospital/api/node_modules/esbuild/lib/main.js:1476:15)
    at /workspaces/hospital/api/node_modules/esbuild/lib/main.js:945:25
    at /workspaces/hospital/api/node_modules/esbuild/lib/main.js:897:52
    at buildResponseToResult (/workspaces/hospital/api/node_modules/esbuild/lib/main.js:943:7)
    at /workspaces/hospital/api/node_modules/esbuild/lib/main.js:970:16
    at responseCallbacks.<computed> (/workspaces/hospital/api/node_modules/esbuild/lib/main.js:622:9)
    at handleIncomingPacket (/workspaces/hospital/api/node_modules/esbuild/lib/main.js:677:12)
    at Socket.readFromStdout (/workspaces/hospital/api/node_modules/esbuild/lib/main.js:600:7)
    at Socket.emit (node:events:520:28)
    at addChunk (node:internal/streams/readable:559:12) {
  errors: [Getter/Setter],
  warnings: [Getter/Setter]
}

Node.js v22.8.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant