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.

Uncaught TypeError: Cannot read property 'apply' of undefined common.es5.js

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Windows 7 Professional
@angular/cli: 1.0.4
node: 6.10.3
os: win32 x64
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.0.4
@angular/compiler-cli: 4.1.3

Repro steps.

npm -v
3.10.10

node -v
v6.10.3

npm install -g @angular/cli
ng new Angular4
cd Angular4
ng serve

The log given by the failure.

ng serve does not throw errors. But browser has following error:

Uncaught TypeError: Cannot read property 'apply' of undefined
combine @ common.es5.js:3091
ENTITIES @ common.es5.js:2941
__webpack_require__ @ bootstrap 6518a66546b9401e7158:52
module.exports @ http.es5.js:2185
__webpack_require__ @ bootstrap 6518a66546b9401e7158:52
webpackJsonp.104 @ src async:7
__webpack_require__ @ bootstrap 6518a66546b9401e7158:52
webpackJsonp.243 @ main.bundle.js:160
__webpack_require__ @ bootstrap 6518a66546b9401e7158:52
webpackJsonpCallback @ bootstrap 6518a66546b9401e7158:23
(anonymous function) @ main.bundle.js:1

Desired functionality.

I would like to run a sample application provided in https://cli.angular.io/

Mention any other details that might be useful.

This is a fresh start. This system had no node/npm/Angular/CLI installed before.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ahmetkizilkayacommented, May 24, 2017

I have same issue in ie11 and chrome. firefox is well.

1reaction
vighneshbendrecommented, Jun 14, 2017

Hi, just checking to see if there’s any update on the issue…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'apply ' of undefined - javascript
If you called that function(original) {} with no argument (function(original) {})() then original is undefined and original.apply would ...
Read more >
Uncaught TypeError: Cannot read property 'apply' of undefined ...
Uncaught TypeError : Cannot read property 'apply' of undefined common.es5.js.
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
TypeError: Cannot read property of undefined occurs when a property is read or a function is called on an undefined variable.
Read more >
CANNOT READ PROPERTY 'APPLY' OF UNDEFINED
The message states that the button has no click-handler so it seems that the click handler (onResolvedOnlyClick) should be added not in the ......
Read more >
cannot read property of undefined (reading 'id') angular
The problem is that as an Input variable, the reminders object is initially undefined until angular has finished initializing the component. See this...
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