You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I followed the instructions for setting up testing on my Ionic project, but I got the error Uncaught Error: Module build failed: TypeError: Cannot read property 'afterCompile' of undefined
After some investigation I realized that Ionic uses webpack 3, but the default version of ts-loader installed with npm install is for webpack 4. Please update the blog entry to install a 3.x.x version of ts-loader.
For anyone facing this error you can simply install the correct version of ts-loader manually like this...
@wilfredonoyola I'm aware of what the issue is, and I've already fixed it on my end.
I'm saying that in the instructions on the blog post it should be npm install [email protected] instead of just npm install ts-loader if you expect new people to be able to follow the instructions and have them work.
I followed the instructions for setting up testing on my Ionic project, but I got the error
Uncaught Error: Module build failed: TypeError: Cannot read property 'afterCompile' of undefined
After some investigation I realized that Ionic uses webpack 3, but the default version of
ts-loader
installed with npm install is for webpack 4. Please update the blog entry to install a 3.x.x version of ts-loader.For anyone facing this error you can simply install the correct version of ts-loader manually like this...
The text was updated successfully, but these errors were encountered: