new text loader in 17.1.0-rc.1 doesn't load files from node_modules #26866
Labels
area: @angular-devkit/build-angular
devkit/build-angular:dev-server
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
serve
Is this a regression?
Description
Using the new loader support in version 17.1 to load the content of a file as text using an import statement works fine, but not when the file is under node_modules, unless using a complete relative path such as
../../node_modules/bootstrap-icons/icons/save.svg
.When using the path that looks more logical to me (
bootstrap-icons/icons/save.svg
), then the CLI outputs a warning in the console:and instead of loading the file content, it loads the text
/@fs/home/projects/stackblitz-starters-ycv7cm/repro/node_modules/bootstrap-icons/icons/save.svg
Minimal Reproduction
https://stackblitz.com/edit/stackblitz-starters-ycv7cm?file=repro%2Fsrc%2Fapp%2Fapp.component.ts
Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: