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

ng test gives error on new install #9549

Closed
rsaenen opened this issue Feb 8, 2018 · 3 comments
Closed

ng test gives error on new install #9549

rsaenen opened this issue Feb 8, 2018 · 3 comments

Comments

@rsaenen
Copy link

rsaenen commented Feb 8, 2018

Versions

Angular CLI: 1.6.7
Node: 8.9.4
npm: 5.6.0
OS: linux x64
Angular: 5.2.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.6.7
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.7
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

Repro steps

  • ng new my-project
  • cd my-project
  • ng test

Observed behavior

10% building modules 1/1 modules 0 active08 02 2018 12:08:11.887:WARN [karma]: No captured browser, open http://localhost:9876/
08 02 2018 12:08:11.900:INFO [karma]: Front-end scripts not present. Compiling...
 95% emitting08 02 2018 12:08:22.565:ERROR [karma]: TypeError: Cannot read property 'apply' of undefined
    at /home/rsaenen/git/ng-val/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:70:14
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

Desired behavior

Can run test.

Mention any other details that might be useful (optional)

Tried with the latest node 9.5.0 and the LTS, got the same issue.

@tsvetomir
Copy link

tsvetomir commented Feb 8, 2018

It fails with ng build as well:

 95% emitting/tmp/angular-aot/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:40
		callbacks[i](err, result);
		            ^

TypeError: callbacks[i] is not a function
    at Storage.finished (/tmp/angular-aot/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:40:15)
    at /tmp/angular-aot/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:77:9
    at /tmp/angular-aot/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:153:5)

node v8.9.4
npm 5.6.0

@rsaenen
Copy link
Author

rsaenen commented Feb 8, 2018

Duplicate of #9550

@rsaenen rsaenen closed this as completed Feb 8, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants