Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the following error when running npm test #1

Open
chrisj-skinner opened this issue Jun 12, 2017 · 0 comments
Open

Get the following error when running npm test #1

chrisj-skinner opened this issue Jun 12, 2017 · 0 comments

Comments

@chrisj-skinner
Copy link

@akorchev

> [email protected] test /Applications/MAMP/htdocs/Dev/angular2-webpack-mocha
> mocha-webpack

TypeError: Cannot read property 'exclude' of undefined
    at applyDefaults (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript-loader/src/instance
.ts:266:72)
    at Object.ensureInstance (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript-loader/src/
instance.ts:145:5)
    at compiler (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript-loader/src/index.ts:37:2
0)
    at Object.loader (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript-loader/src/index.ts
:18:18)
    at WEBPACK_CORE_LOADER_EXECUTION (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/Norma
lModuleMixin.js:155:71)
    at runSyncOrAsync (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js
:155:93)
    at nextLoader (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:290
:3)
    at /Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15
    at Object.context.callback (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModul
eMixin.js:148:14)
    at Object.module.exports (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/angular2-template-loader/index
.js:32:10)
    at WEBPACK_CORE_LOADER_EXECUTION (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/Norma
lModuleMixin.js:155:71)
    at runSyncOrAsync (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js
:155:93)
    at nextLoader (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:290
:3)
at /Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:259:5
    at Storage.finished (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack/node_modules/enhanced-resol
ve/lib/CachedInputFileSystem.js:38:16)
    at /Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/graceful-fs/graceful-fs.js:78:16
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3) 'TypeError: Cannot read property \'exclude\' of undefined\n
   at applyDefaults (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript-loader/src/instance.
ts:266:72)\n    at Object.ensureInstance (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript
-loader/src/instance.ts:145:5)\n    at compiler (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typ
escript-loader/src/index.ts:37:20)\n    at Object.loader (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/aw
esome-typescript-loader/src/index.ts:18:18)\n    at WEBPACK_CORE_LOADER_EXECUTION (/Applications/MAMP/htdocs/Dev/angular2-webp
ack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:155:71)\n    at runSyncOrAsync (/Applications/MAMP/htdocs/Dev/ang
ular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:155:93)\n    at nextLoader (/Applications/MAMP/htdocs/D
ev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:290:3)\n    at /Applications/MAMP/htdocs/Dev/angu
lar2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:292:15\n    at Object.context.callback (/Applications/MA
MP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:148:14)\n    at Object.module.exports
(/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/angular2-template-loader/index.js:32:10)\n    at WEBPACK_CO
RE_LOADER_EXECUTION (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleMixin.js:1
55:71)\n    at runSyncOrAsync (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModule
Mixin.js:155:93)\n    at nextLoader (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/Normal
ModuleMixin.js:290:3)\n    at /Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack-core/lib/NormalModuleM
ixin.js:259:5\n    at Storage.finished (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/webpack/node_modules
/enhanced-resolve/lib/CachedInputFileSystem.js:38:16)\n    at /Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_module
s/graceful-fs/graceful-fs.js:78:16\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:439:3)'

WARNING in ./src/app/app.component.spec.ts
Module build failed: TypeError: Cannot read property 'exclude' of undefined
    at applyDefaults (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript-loader/src/instance
.ts:266:72)
    at Object.ensureInstance (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript-loader/src/
instance.ts:145:5)
    at compiler (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript-loader/src/index.ts:37:2
0)
    at Object.loader (/Applications/MAMP/htdocs/Dev/angular2-webpack-mocha/node_modules/awesome-typescript-loader/src/index.ts
:18:18)
 @ ./src object Object


  0 passing (0ms)

npm ERR! Test failed.  See above for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant