Problem
Upon working through the first portion of the tutorial, up though " Building Out the Default Route", npm start
works fine.
See http://aurelia.io/docs/tutorials/creating-a-contact-manager#building-out-the-default-route
But npm run build
produces these webpack errors:
WARNING in Conflict: Multiple assets emit different content to the same filename vendors~203e0718.fdc25451d6f8881a8672.bundle.map
WARNING in Conflict: Multiple assets emit different content to the same filename vendors~7274e1de.2a59b0d566198477210c.bundle.map
I’m fairly new to webpack, but it seems like this should not be ignored.
I’d appreciate knowing whether this warning is serious. (I found it while building a larger practice app built on the tutorial.)
And I’d also appreciate any advice to track down the cause of any such problems.
Steps to Reproduce
I’m running on a modern Macbook, with OSX 11.2.1.
And with node v16.1.0, and npm 7.11.2.
When creating the project using au new
, I selected the option for typescript, and I installed the dependencies using npm.
I made the edits from the first portion of the tutorial, up though " Building Out the Default Route".
Here is the full output from running npm run build:
% npm run build
> contact-manager-ts@0.1.0 build
> webpack --env.production --extractCss
Hash: 95402619a0f474899b79
Version: webpack 4.46.0
Time: 3719ms
Built at: 06/24/2021 9:20:31 AM
Asset Size Chunks Chunk Names
1e59d2330b4c6deb84b340635ed36249.ttf 162 KiB [emitted] [immutable]
20fd1704ea223900efa9fd4e869efb08.woff2 75.4 KiB [emitted] [immutable]
8b43027f47b20503057dfbbaa9401fef.eot 162 KiB [emitted] [immutable]
app~f075b844.f367243a79c3f6d6b2e0.bundle.map 1.44 KiB 0 [emitted] [dev] app~f075b844
app~f075b844.f367243a79c3f6d6b2e0.chunk.js 3.71 KiB 0 [emitted] [immutable] app~f075b844
c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg 434 KiB [emitted] [immutable] [big]
f691f37e57f04c152e2315ab7dbad881.woff 95.7 KiB [emitted] [immutable]
favicon.ico 14.7 KiB [emitted]
index.html 1.01 KiB [emitted]
runtime~app.c0aa0ff0556ffbb1d080.bundle.js 1.52 KiB 1 [emitted] [immutable] runtime~app
runtime~app.c0aa0ff0556ffbb1d080.bundle.map 2.89 KiB 1 [emitted] [dev] runtime~app
vendors~0ba1d959.3f129000e36a28166cb5.bundle.map 109 KiB 2 [emitted] [dev] vendors~0ba1d959
vendors~0ba1d959.3f129000e36a28166cb5.chunk.js 92.1 KiB 2 [emitted] [immutable] vendors~0ba1d959
vendors~203e0718.b7f500b91c9c5315fbbd.chunk.css 36.6 KiB 3 [emitted] [immutable] vendors~203e0718
vendors~203e0718.fdc25451d6f8881a8672.bundle.map 3.42 KiB 3, 3 [emitted] [dev] vendors~203e0718, vendors~203e0718
vendors~203e0718.fdc25451d6f8881a8672.chunk.js 2.28 KiB 3 [emitted] [immutable] vendors~203e0718
vendors~50e8d500.6bb2b049e73291b21f2f.bundle.map 65.3 KiB 4 [emitted] [dev] vendors~50e8d500
vendors~50e8d500.6bb2b049e73291b21f2f.chunk.js 46.7 KiB 4 [emitted] [immutable] vendors~50e8d500
vendors~556c66f2.bad39e25b2f6596882f5.bundle.map 61.3 KiB 5 [emitted] [dev] vendors~556c66f2
vendors~556c66f2.bad39e25b2f6596882f5.chunk.js 48.7 KiB 5 [emitted] [immutable] vendors~556c66f2
vendors~5ea1390f.ffb5b997fe37300c2a35.bundle.map 100 KiB 6 [emitted] [dev] vendors~5ea1390f
vendors~5ea1390f.ffb5b997fe37300c2a35.chunk.js 76.2 KiB 6 [emitted] [immutable] vendors~5ea1390f
vendors~7274e1de.2a59b0d566198477210c.bundle.map 2.98 KiB 7, 7 [emitted] [dev] vendors~7274e1de, vendors~7274e1de
vendors~7274e1de.2a59b0d566198477210c.chunk.js 1.99 KiB 7 [emitted] [immutable] vendors~7274e1de
vendors~7274e1de.4b52ac07e99a7b731ca2.chunk.css 191 KiB 7 [emitted] [immutable] vendors~7274e1de
vendors~ecff2e3d.3923d8482c497bf7824a.bundle.map 68.9 KiB 8 [emitted] [dev] vendors~ecff2e3d
vendors~ecff2e3d.3923d8482c497bf7824a.chunk.js 54.1 KiB 8 [emitted] [immutable] vendors~ecff2e3d
Entrypoint app [big] = runtime~app.c0aa0ff0556ffbb1d080.bundle.js runtime~app.c0aa0ff0556ffbb1d080.bundle.map vendors~0ba1d959.3f129000e36a28166cb5.chunk.js vendors~0ba1d959.3f129000e36a28166cb5.bundle.map vendors~556c66f2.bad39e25b2f6596882f5.chunk.js vendors~556c66f2.bad39e25b2f6596882f5.bundle.map vendors~50e8d500.6bb2b049e73291b21f2f.chunk.js vendors~50e8d500.6bb2b049e73291b21f2f.bundle.map vendors~5ea1390f.ffb5b997fe37300c2a35.chunk.js vendors~5ea1390f.ffb5b997fe37300c2a35.bundle.map vendors~ecff2e3d.3923d8482c497bf7824a.chunk.js vendors~ecff2e3d.3923d8482c497bf7824a.bundle.map vendors~7274e1de.4b52ac07e99a7b731ca2.chunk.css vendors~7274e1de.2a59b0d566198477210c.chunk.js vendors~7274e1de.2a59b0d566198477210c.bundle.map vendors~7274e1de.2a59b0d566198477210c.bundle.map vendors~203e0718.b7f500b91c9c5315fbbd.chunk.css vendors~203e0718.fdc25451d6f8881a8672.chunk.js vendors~203e0718.fdc25451d6f8881a8672.bundle.map vendors~203e0718.fdc25451d6f8881a8672.bundle.map app~f075b844.f367243a79c3f6d6b2e0.chunk.js app~f075b844.f367243a79c3f6d6b2e0.bundle.map
[0] multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper 52 bytes {0} [built]
[3UD+] (webpack)/buildin/harmony-module.js 573 bytes {3} [built]
[4ysu] ./node_modules/aurelia-router/dist/native-modules/aurelia-router.js + 1 modules 104 KiB {4} [built]
| 2 modules
[BEPO] ./config/environment.json 31 bytes {0} [built]
[app] ./src/app.ts 571 bytes {0} [built]
[app.html] ./src/app.html 496 bytes {0} [built]
[aurelia-testing] ./node_modules/aurelia-testing/dist/native-modules/aurelia-testing.js + 2 modules 6.85 KiB {6} [built]
| 3 modules
[contact-detail] ./src/contact-detail.ts 130 bytes {0} [built]
[main] ./src/main.ts 606 bytes {0} [built]
[no-selection] ./src/no-selection.ts 173 bytes {0} [built]
[no-selection.html] ./src/no-selection.html 149 bytes {0} [built]
[resources/index] ./src/resources/index.ts 38 bytes {0} [built]
[styles.css] ./src/styles.css 2.15 KiB {0} [built]
[yLpj] (webpack)/buildin/global.js 472 bytes {3} [built]
+ 32 hidden modules
WARNING in Conflict: Multiple assets emit different content to the same filename vendors~203e0718.fdc25451d6f8881a8672.bundle.map
WARNING in Conflict: Multiple assets emit different content to the same filename vendors~7274e1de.2a59b0d566198477210c.bundle.map
Child HtmlWebpackCompiler:
1 asset
Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
[8XHo] ./node_modules/html-webpack-plugin/lib/loader.js!./index.ejs 715 bytes {0} [built]
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--4-1!node_modules/bootstrap/dist/css/bootstrap.css:
Entrypoint mini-css-extract-plugin = *
3 modules
Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--4-1!node_modules/font-awesome/css/font-awesome.css:
Asset Size Chunks Chunk Names
1e59d2330b4c6deb84b340635ed36249.ttf 162 KiB [emitted] [immutable]
20fd1704ea223900efa9fd4e869efb08.woff2 75.4 KiB [emitted] [immutable]
8b43027f47b20503057dfbbaa9401fef.eot 162 KiB [emitted] [immutable]
c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg 434 KiB [emitted] [immutable] [big]
f691f37e57f04c152e2315ab7dbad881.woff 95.7 KiB [emitted] [immutable]
Entrypoint mini-css-extract-plugin = *
10 modules