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 plugin causing error in Nx Angular CLI (angular 17) #554

Open
rodolfoBee opened this issue Jun 24, 2024 · 2 comments · Fixed by #555
Open

esbuild plugin causing error in Nx Angular CLI (angular 17) #554

rodolfoBee opened this issue Jun 24, 2024 · 2 comments · Fixed by #555

Comments

@rodolfoBee
Copy link
Member

Steps to Reproduce

  1. Download repro:
    angularBuildError.zip
  2. Update org, project and token in apps/project.json
  3. npm install
  4. npm run build

This will run a nx build

Expected Result

The application is build and source maps are uploaded to Sentry.

Actual Result

> @sentry-test/[email protected] build
> nx build
> nx run sentry-test:build:production

Application bundle generation failed. [0.144 seconds]
✘ [ERROR] Plugin at index 2 is missing a name
    .../angularBuildError/node_modules/@angular-devkit/build-angular/node_modules/esbuild/lib/main.js:1228:12:
      1228 │       throw new Error(`Plugin at index ${i} is missing a name`);
           ╵             ^

    at handlePlugins (.../angularBuildError/node_modules/@angular-devkit/build-angular/node_modules/esbuild/lib/main.js:1228:13)

———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
 NX   Ran target build for project sentry-test (3s)
   ✖  1/1 failed
   ✔  0/1 succeeded [0 read from cache]

Removing the plugin no longer causes the issue.

Similar to issue #483

@lforst
Copy link
Member

lforst commented Jul 4, 2024

Reopening because the plugins doesn't do anything now

@lforst lforst reopened this Jul 4, 2024
@drakedeatonuk
Copy link

Also seeing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

4 participants