Monday, May 2, 2016

Error: Cannot resolve module 'apply' webpack angular2

Leave a Comment

I am not really sure how I got into this pickle.. I uninstalled my global webpack and reinstalled it locally to dockerize my project. Then I got a trail of errors, resolved the ones I could and I'm left with this

http://puu.sh/orazd/b8a85ac5c6.png

I don't use any module called apply, most certainly not in every file

3 Answers

Answers 1

I had tried resolveLoader previously

and it had worked for me.

My configuration is as follows:

resolveLoader: {   modulesDirectories: [       '/users/path/a/node_modules'   ] }, 

Hope this helps.

Answers 2

Though not sure, I think maybe something wrong, like conflicts, in the typings folder. Would you try to remove typings folder and run npm install again.

Answers 3

The answer turned out to be

enter image description here

silly enough.. the error was a little misleading but.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment