Closed alfmosmq closed 2 months ago
Duplicate of https://github.com/angular/angular-cli/issues/27764
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.
Command
build
Is this a regression?
The previous version in which this bug was not present was
16
Description
if in a project you have some imported module tha includes a ,node file, vite complains that it hasn't have a loader.
It seems this could be managed inside vite.config.js, but angular doesn't have one. I tried to add one in the project root directory, but no luck
Minimal Reproduction
create a new app ng new testpdf (include SSR) then add ng2-pdf-viewer 10.2.2, which in turn adds pdf-js-dist 3.11.174, which adds canvas 2.11.2 in app.component.ts import pdfViewer
Add a reference to a fake pdf in app.component.html
launch ng build, and you'll get the error
Exception or Error
but my package.json is