angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Package subpath error with plugin for Custom esbuild builder

Open jonmarozick opened this issue 2 years ago • 2 comments

Command

build

Is this a regression?

  • [ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

I'm trying to use the anolilab unplugin-favicons package to generate favicons in an Angular 18 application. I'm using the @angular-builders/custom-esbuild:application builder so I can add plugins into the esbuild system. I've looked at their examples but have had no luck.

Minimal Reproduction

Here is a Stackblitz that shows the issue.

Exception or Error

The message I get is: An unhandled exception occurred: Package subpath './esbuild' is not defined by "exports" in C:\Projects\a18\esbuildtest\node_modules@anolilab\unplugin-favicons\package.json

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 17.3.7
Node: 20.12.1
Package Manager: npm 10.5.2
OS: win32 x64

Angular: 17.3.9
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.7
@angular-devkit/build-angular   17.3.7
@angular-devkit/core            17.3.7
@angular-devkit/schematics      17.3.7
@angular/cli                    17.3.7
@schematics/angular             17.3.7
ng-packagr                      17.3.0
rxjs                            7.8.1
typescript                      5.3.3
zone.js                         0.14.6

Anything else relevant?

No response

jonmarozick avatar Jun 28 '24 21:06 jonmarozick

@angular-builders/custom-esbuild:application is not supported by the Angular team.

alan-agius4 avatar Jun 29 '24 04:06 alan-agius4

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.