-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
needs: repro stepsWe cannot reproduce the issue with the information givenWe cannot reproduce the issue with the information given
Description
🐞 Bug report
Command (mark with an x
)
- new
- build
- serve
- test
- e2e
- generate
- add
- update
- lint
- extract-i18n
- run
- config
- help
- version
- doc
Is this a regression?
Breaking change: d71ee21#diff-f3bcbd6f6b0756d2178dd69396750fa742093fb7f4668ab284463c0ca348b032R370
Description
List a local js/umd
built package in the package.json
and run npm i
so it creates a symbolic link in node_modules
and not a copy.
Causes chunks to be generated with undefinedundefinedundefinedundefined
inserted into the bottom of the build output which obviously break the whole thing on runtime.
Workarounds
-
Disable source map generation (i.e production mode)
-
(Best option)
npm pack
the module and list the tar in thepackage.json
instead so that the module is copied and not linked. -
Other fix (by far not recommended):
// adding vendorSourceMap in @angular-devkit/build-angular/src/webpack/configs/common.js fixes it
if ((scriptsSourceMap || stylesSourceMap) && vendorSourceMap) {
// --- OR ---
// add the origin folder (in this case 'vendor') to exclude regex
exclude: vendorSourceMap
? /(ngfactory|ngstyle)\.js$/
: [/[\\\/]node_modules[\\\/]/, /[\\\/]vendor[\\\/]/, /(ngfactory|ngstyle)\.js$/],
🔬 Minimal Reproduction
Apart from a zoom call, can't really reproduce as it's a purchased commercial module in use.
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
Metadata
Metadata
Assignees
Labels
needs: repro stepsWe cannot reproduce the issue with the information givenWe cannot reproduce the issue with the information given