Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: Cannot read property 'main' of undefined Use

Worked just fine yesterday, but today I suddenly got this error when running 'grunt server':

Running "bowerInstall:app" (bowerInstall) task
Warning: Cannot read property 'main' of undefined Use --force to continue.

Aborted due to warnings.

I even did a hard reset to the previous commit, but I still get the same error. What could be causing this?

Git repo: https://github.com/oyvindhellenes/Corsane

like image 575
Øyvind Hellenes Avatar asked May 06 '14 11:05

Øyvind Hellenes


People also ask

How to solve cannot read property of undefined error?

To solve the "Cannot read property of undefined" error, make sure to insert the JS script tag at the bottom of the body. The JS script tag should be placed after the HTML elements have been declared. Copied!

Can't Read Property of undefined in Enum?

The enum error - cannot read property of undefined occurs for 2 main reasons: Using const enums that get removed during compilation. Having circular imports (importing members between the same files).

What is the meaning of undefined in JavaScript?

Undefined means that a variable has been declared but has not been assigned a value. In JavaScript, properties and functions can only belong to objects. Since undefined is not an object type, calling a function or a property on such a variable causes the TypeError: Cannot read property of undefined.

Why can’t I call a function on an undefined variable?

In JavaScript, properties and functions can only belong to objects. Since undefined is not an object type, calling a function or a property on such a variable causes the TypeError: Cannot read property of undefined.


1 Answers

Okay this is awkward. A simple 'bower install' did the trick.

like image 135
Øyvind Hellenes Avatar answered Nov 03 '22 00:11

Øyvind Hellenes