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-plugin is missing a name #483
Comments
Hi, would you mind console logging your plugins on build and sharing them here? I cannot immediately spot where we would be missing a plugin name. Maybe the logs help us find the culprit. |
These are the plugins being loaded (console logging node_modules/esbuild/lib/main.js):
These are the items I get when logging the let item of plugins iterator:
The vite.config.ts is the one from your docs:
|
Can you elaborate why you are using the vite plugin while using the esbuild Angular builder? Can you try using the |
Thanks for the note, apologies posted on the wrong plugin. The error is the same though, this is the config: angular.json: "builder": "@angular-builders/custom-esbuild:application", esbuild.config.ts:
|
I cannot reproduce this with the latest version of esbuild and the esbuild plugin. Would you mind sharing a small reproduction example? Thanks! |
Hi, thanks - here's an example: https://stackblitz.com/edit/stackblitz-starters-ddzaip?file=src%2Fmain.ts |
@LukasKlement the stackblitz you shared doesn't contain any Sentry plugins 🤔 did you press save? |
Trying to use the vite-plugin in an Angular application with angular-builders/custom-esbuild (https://github.com/just-jeb/angular-builders/tree/master/packages/custom-esbuild) produces the error on build: throw new Error(
Plugin at index ${i} is missing a name
);In angular.json I use the builder: "builder": "@angular-builders/custom-esbuild:application" and in options "plugins": ["./vite.config.ts"],
The plugin is from the documentation - manual setup: https://docs.sentry.io/platforms/node/guides/connect/sourcemaps/uploading/vite/
Environment:
The text was updated successfully, but these errors were encountered: