question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: Cannot read property 'apply' of undefined in CachedInputFileSystem.js

See original GitHub issue

Versions

Angular CLI: 1.6.8
Node: 8.9.4
OS: win32 x64
Angular: 5.2.4
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic, router

@angular/cli: 1.6.8
@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.8
@schematics/angular: 0.1.17
typescript: 2.4.2
webpack: 3.10.0

Repro steps

Running ng server or ng build on the project Use the repository from here: https://github.com/tsimon-edu-sharing/cli-sample

Observed behavior

** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
 95% emittingC:\Users\project\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:70
                                callback.apply(null, data);
                                         ^

TypeError: Cannot read property 'apply' of undefined
    at C:\Users\project\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

Should run / build, or give a more useful error

Mention any other details that might be useful (optional)

Reason seems to have something to do with including the font stylesheet via the angular-cli.json

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
JoshDSommercommented, Feb 8, 2018

I’m having the same problem with the latest version of the Angular CLI (1.6.8). I’ve resolved this by temporarily setting the Angular CLI version in my package.json to 1.6.7

1reaction
micahwoodcommented, Feb 8, 2018

Looks like it was an issue with copy-webpack-plugin@4.4.0. Once it started working again it installed 4.4.1 which fixed this issue.

https://github.com/webpack-contrib/copy-webpack-plugin/pull/221

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'apply ' of undefined - javascript
You assign that returned function(x, y) {} function having a closure over original to o.method passing the original o.method as argument. If ...
Read more >
Uncaught (in promise) TypeError: Cannot read property 'apply ...
When the Asgaros Forum plugin is active, I am getting a javascript error when ... Uncaught (in promise) TypeError: Cannot read property 'apply'...
Read more >
Uncaught TypeError: Cannot read property 'apply' of undefined
When trying to change theme component setting, clicking the green check button produces the following error, changes are not saved (Category icons component ......
Read more >
Cannot read property 'apply' of undefined" - Forums - Liferay
In the console, persistent errors : "Uncaught TypeError: Cannot read property 'apply' of undefined" In what may be the reason?
Read more >
2013 - Uncaught TypeError: Cannot read property 'apply' of ...
I can see following issues in the code: In the line var listEnumerator = lists.getEnumerator();. the variable 'lists' is undefined, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found