Here is my configuration on a new app using latest aurelia-cli v1.0.0-beta.9 (1/17/19)
Platform: Web
Bundler: Webpack
Loader: None
Transpiler: TypeScript
Markup Processor: Minimal Minification
CSS Processor: Sass
Unit Test Runner: Karma
Integration Test Runner: Protractor
Editor: Visual Studio Code
I haven’t modified anything. I built the app, then I tried to run au karma with the following error. Any clues?
Local aurelia-cli v1.0.0-beta.9
Starting ‘karma’…
START:
(node:9100) DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks
instead
i 「wdm」: wait until bundle finished: noop
{ uid: 0,
name: ‘karma’,
branch: false,
error:
{ TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined
at assertPath (path.js:39:11)
at Object.join (path.js:432:7)
at Plugin. (C:\Users\Desktop\AureliaGoTo\Test\DemoApp\node_modules\karma-webpack\lib\karma-webpack.js:274:66)
at Plugin.readFile (C:\Users\Desktop\AureliaGoTo\Test\DemoApp\node_modules\karma-webpack\lib\karma-webpack.js:294:5)
at process._tickCallback (internal/process/next_tick.js:61:11)
domain:
Domain {
domain: null,
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
members: [] },
domainThrown: true },
duration: [ 8, 61065400 ],
time: 1547751633393 }
× 「wdm」: Hash: c32fb567f32200de31ba
Version: webpack 4.28.4
Time: 12318ms
Built at: 01/17/2019 2:00:33 PM
Asset Size Chunks Chunk Names
app~d0ae3f07.c32fb567f32200de31ba.chunk.js 16.1 KiB app~d0ae3f07 [emitted] app~d0ae3f07
index.html 3.77 KiB [emitted]
runtime~app.c32fb567f32200de31ba.bundle.js 6.1 KiB runtime~app [emitted] runtime~app
runtime~test\karma-bundle.c32fb567f32200de31ba.bundle.js 6.11 KiB runtime~test\karma-bundle [emitted] runtime~test\karma-bundle
test\karma-bundle~30ccc425.c32fb567f32200de31ba.chunk.js 15.3 KiB test\karma-bundle~30ccc425 [emitted] test\karma-bundle~30ccc425
vendors~02227409.c32fb567f32200de31ba.chunk.js 472 KiB vendors~02227409 [emitted] [big] vendors~02227409
vendors~15ae29a2.c32fb567f32200de31ba.chunk.js 482 KiB vendors~15ae29a2 [emitted] [big] vendors~15ae29a2
vendors~203e0718.c32fb567f32200de31ba.chunk.js 42 KiB vendors~203e0718 [emitted] vendors~203e0718
vendors~253ae210.c32fb567f32200de31ba.chunk.js 44 KiB vendors~253ae210 [emitted] vendors~253ae210
vendors~29cb4e3c.c32fb567f32200de31ba.chunk.js 130 KiB vendors~29cb4e3c [emitted] vendors~29cb4e3c
vendors~2a42e354.c32fb567f32200de31ba.chunk.js 72.6 KiB vendors~2a42e354 [emitted] vendors~2a42e354
vendors~50e8d500.c32fb567f32200de31ba.chunk.js 273 KiB vendors~50e8d500 [emitted] [big] vendors~50e8d500
vendors~556c66f2.c32fb567f32200de31ba.chunk.js 257 KiB vendors~556c66f2 [emitted] [big] vendors~556c66f2
vendors~62ab6885.c32fb567f32200de31ba.chunk.js 480 KiB vendors~62ab6885 [emitted] [big] vendors~62ab6885
vendors~70aabc29.c32fb567f32200de31ba.chunk.js 443 KiB vendors~70aabc29 [emitted] [big] vendors~70aabc29
vendors~7274e1de.c32fb567f32200de31ba.chunk.js 171 KiB vendors~7274e1de [emitted] vendors~7274e1de
vendors~72f93981.c32fb567f32200de31ba.chunk.js 443 KiB vendors~72f93981 [emitted] [big] vendors~72f93981
vendors~72fdf3f2.c32fb567f32200de31ba.chunk.js 72.6 KiB vendors~72fdf3f2 [emitted] vendors~72fdf3f2
vendors~79ccc924.c32fb567f32200de31ba.chunk.js 148 KiB vendors~79ccc924 [emitted] vendors~79ccc924
vendors~c1dd23ef.c32fb567f32200de31ba.chunk.js 498 KiB vendors~c1dd23ef [emitted] [big] vendors~c1dd23ef
vendors~cfbf0a2e.c32fb567f32200de31ba.chunk.js 68.4 KiB vendors~cfbf0a2e [emitted] vendors~cfbf0a2e
vendors~d939e436.c32fb567f32200de31ba.chunk.js 367 KiB vendors~d939e436 [emitted] [big] vendors~d939e436
vendors~db300d2f.c32fb567f32200de31ba.chunk.js 68.1 KiB vendors~db300d2f [emitted] vendors~db300d2f
vendors~ec8c427e.c32fb567f32200de31ba.chunk.js 49.4 KiB vendors~ec8c427e [emitted] vendors~ec8c427e
vendors~ecff2e3d.c32fb567f32200de31ba.chunk.js 360 KiB vendors~ecff2e3d [emitted] [big] vendors~ecff2e3d
vendors~f6e181f3.c32fb567f32200de31ba.chunk.js 496 KiB vendors~f6e181f3 [emitted] [big] vendors~f6e181f3
Entrypoint app [big] = runtime~app.c32fb567f32200de31ba.bundle.js vendors~253ae210.c32fb567f32200de31ba.chunk.js vendors~2a42e354.c32fb567f32200de31ba.chunk.js vendors~15ae29a2.c32fb567f32200de31ba.chunk.js vendors~556c66f2.c32fb567f32200de31ba.chunk.js vendors~72fdf3f2.c32fb567f32200de31ba.chunk.js vendors~50e8d500.c32fb567f32200de31ba.chunk.js vendors~ecff2e3d.c32fb567f32200de31ba.chunk.js vendors~02227409.c32fb567f32200de31ba.chunk.js vendors~7274e1de.c32fb567f32200de31ba.chunk.js vendors~62ab6885.c32fb567f32200de31ba.chunk.js vendors~d939e436.c32fb567f32200de31ba.chunk.js vendors~72f93981.c32fb567f32200de31ba.chunk.js vendors~db300d2f.c32fb567f32200de31ba.chunk.js vendors~79ccc924.c32fb567f32200de31ba.chunk.js vendors~203e0718.c32fb567f32200de31ba.chunk.js vendors~70aabc29.c32fb567f32200de31ba.chunk.js vendors~29cb4e3c.c32fb567f32200de31ba.chunk.js vendors~c1dd23ef.c32fb567f32200de31ba.chunk.js vendors~ec8c427e.c32fb567f32200de31ba.chunk.js vendors~f6e181f3.c32fb567f32200de31ba.chunk.js vendors~cfbf0a2e.c32fb567f32200de31ba.chunk.js app~d0ae3f07.c32fb567f32200de31ba.chunk.js
Entrypoint test\karma-bundle [big] = runtime~test\karma-bundle.c32fb567f32200de31ba.bundle.js vendors~253ae210.c32fb567f32200de31ba.chunk.js vendors~2a42e354.c32fb567f32200de31ba.chunk.js vendors~15ae29a2.c32fb567f32200de31ba.chunk.js vendors~556c66f2.c32fb567f32200de31ba.chunk.js vendors~72fdf3f2.c32fb567f32200de31ba.chunk.js vendors~50e8d500.c32fb567f32200de31ba.chunk.js vendors~ecff2e3d.c32fb567f32200de31ba.chunk.js vendors~02227409.c32fb567f32200de31ba.chunk.js vendors~7274e1de.c32fb567f32200de31ba.chunk.js vendors~62ab6885.c32fb567f32200de31ba.chunk.js vendors~d939e436.c32fb567f32200de31ba.chunk.js vendors~72f93981.c32fb567f32200de31ba.chunk.js vendors~db300d2f.c32fb567f32200de31ba.chunk.js vendors~79ccc924.c32fb567f32200de31ba.chunk.js vendors~203e0718.c32fb567f32200de31ba.chunk.js vendors~70aabc29.c32fb567f32200de31ba.chunk.js vendors~29cb4e3c.c32fb567f32200de31ba.chunk.js vendors~c1dd23ef.c32fb567f32200de31ba.chunk.js vendors~ec8c427e.c32fb567f32200de31ba.chunk.js vendors~f6e181f3.c32fb567f32200de31ba.chunk.js vendors~cfbf0a2e.c32fb567f32200de31ba.chunk.js test\karma-bundle~30ccc425.c32fb567f32200de31ba.chunk.js
[0] multi aurelia-webpack-plugin/runtime/empty-entry aurelia-webpack-plugin/runtime/pal-loader-entry aurelia-bootstrapper 52 bytes {app~d0ae3f07}
[/DVR] ./node_modules/jest-matchers/build-es5/toThrowMatchers.js 6.58 KiB {vendors~70aabc29} [built]
[14Xm] ./node_modules/babel-runtime/regenerator/index.js 49 bytes {vendors~2a42e354} [built]
[17bz] ./src sync .spec.[tj]s$/i 160 bytes {test\karma-bundle~30ccc425} [built]
[3UD+] (webpack)/buildin/harmony-module.js 573 bytes {vendors~cfbf0a2e} [built]
[5MF3] ./node_modules/jest-matchers/build-es5/index.js 11.4 KiB {vendors~70aabc29} [built]
[5jyU] ./node_modules/aurelia-loader-webpack/dist/native-modules/aurelia-loader-webpack.js 15.2 KiB {vendors~556c66f2} [built]
[GAND] ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js 585 bytes {vendors~2a42e354} [built]
[GmYv] ./node_modules/aurelia-webpack-plugin/runtime/pal-loader-entry.js 1.56 KiB {vendors~2a42e354} [built]
[Ivzx] ./test/karma-bundle.js 2.22 KiB {test\karma-bundle~30ccc425} [built]
[Q/5p] ./node_modules/aurelia-polyfills/dist/native-modules/aurelia-polyfills.js 24.4 KiB {vendors~50e8d500} [built]
[WZb+] ./test/unit sync .spec.[tj]s$/i 178 bytes {test\karma-bundle~30ccc425} [built]
[b9nV] ./node_modules/aurelia-bootstrapper/dist/native-modules/aurelia-bootstrapper.js 5.46 KiB {vendors~15ae29a2} [built]
[yE5B] ./node_modules/jest-jasmine2/build/jasmine_async.js 4.66 KiB {vendors~70aabc29} [built]
[yLpj] (webpack)/buildin/global.js 472 bytes {vendors~cfbf0a2e} [built]
+ 344 hidden modules
ERROR in ./node_modules/jest-message-util/build/index.js
Module not found: Error: Can’t resolve ‘fs’ in ‘C:\Users\Desktop\AureliaGoTo\Test\DemoApp\node_modules\jest-message-util\build’
@ ./node_modules/jest-message-util/build/index.js 8:10-23
@ ./node_modules/jest-matchers/build-es5/toThrowMatchers.js
@ ./node_modules/jest-matchers/build-es5/index.js
@ ./test/karma-bundle.js
ERROR in ./node_modules/snapdragon/lib/source-maps.js
Module not found: Error: Can’t resolve ‘fs’ in ‘C:\Users\Desktop\AureliaGoTo\Test\DemoApp\node_modules\snapdragon\lib’
@ ./node_modules/snapdragon/lib/source-maps.js 3:9-22
@ ./node_modules/snapdragon/lib/compiler.js
@ ./node_modules/snapdragon/index.js
@ ./node_modules/micromatch/lib/utils.js
@ ./node_modules/micromatch/index.js
@ ./node_modules/jest-message-util/build/index.js
@ ./node_modules/jest-matchers/build-es5/toThrowMatchers.js
@ ./node_modules/jest-matchers/build-es5/index.js
@ ./test/karma-bundle.js
Child html-webpack-plugin for “index.html”:
Asset Size Chunks Chunk Names
index.html 1.36 MiB 1
Entrypoint undefined = index.html
[8XHo] ./node_modules/html-webpack-plugin/lib/loader.js!./index.ejs 627 bytes {1} [built]
[LvDl] ./node_modules/lodash/lodash.js 527 KiB {1} [built]
[YuTi] (webpack)/buildin/module.js 497 bytes {1} [built]
[yLpj] (webpack)/buildin/global.js 472 bytes {1} [built]
i 「wdm」: Failed to compile.
{ TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received type undefined
at assertPath (path.js:39:11)
at Object.join (path.js:432:7)
at Plugin. (C:\Users\Desktop\AureliaGoTo\Test\DemoApp\node_modules\karma-webpack\lib\karma-webpack.js:274:66)
at Plugin.readFile (C:\Users\Desktop\AureliaGoTo\Test\DemoApp\node_modules\karma-webpack\lib\karma-webpack.js:294:5)
at process._tickCallback (internal/process/next_tick.js:61:11)
domain:
Domain {
domain: null,
_events:
[Object: null prototype] {
removeListener: [Function: updateExceptionCapture],
newListener: [Function: updateExceptionCapture] },
_eventsCount: 2,
_maxListeners: undefined,
members: [] },
domainThrown: true }