Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Josue Castillo
Josue Castillo
1,349 Points

Can't run Angular-dev server after using ng serve

0% compilingCannot read property 'thisCompilation' of undefined TypeError: Cannot read property 'thisCompilation' of undefined at NodeTemplatePlugin.apply (/Users/mackinjosh/Applications/photoblog/node_modules/webpack/lib/node/NodeTemplatePlugin.js:19:18) at Compiler.apply (/Users/mackinjosh/Applications/photoblog/node_modules/tapable/lib/Tapable.js:375:16) at Object.compileTemplate (/Users/mackinjosh/Applications/photoblog/node_modules/html-webpack-plugin/lib/compiler.js:48:17) at Compiler.<anonymous> (/Users/mackinjosh/Applications/photoblog/node_modules/html-webpack-plugin/index.js:47:40) at Compiler.applyPluginsParallel (/Users/mackinjosh/Applications/photoblog/node_modules/tapable/lib/Tapable.js:293:14) at applyPluginsAsync.err (/Users/mackinjosh/Applications/photoblog/node_modules/@angular/cli/node_modules/webpack/lib/Compiler.js:499:9) at Compiler.applyPluginsAsyncSeries (/Users/mackinjosh/Applications/photoblog/node_modules/tapable/lib/Tapable.js:195:46) at Compiler.compile (/Users/mackinjosh/Applications/photoblog/node_modules/@angular/cli/node_modules/webpack/lib/Compiler.js:492:8) at compiler.applyPluginsAsync.err (/Users/mackinjosh/Applications/photoblog/node_modules/@angular/cli/node_modules/webpack/lib/Compiler.js:83:18) at next (/Users/mackinjosh/Applications/photoblog/node_modules/tapable/lib/Tapable.js:202:11) at Compiler.compilerInvalid (/Users/mackinjosh/Applications/photoblog/node_modules/webpack-dev-middleware/lib/Shared.js:161:5) at next (/Users/mackinjosh/Applications/photoblog/node_modules/tapable/lib/Tapable.js:204:14) at Compiler.compiler.plugin (/Users/mackinjosh/Applications/photoblog/node_modules/@angular/cli/node_modules/webpack/lib/CachePlugin.js:48:5) at next (/Users/mackinjosh/Applications/photoblog/node_modules/tapable/lib/Tapable.js:204:14) at Compiler.compiler.plugin (/Users/mackinjosh/Applications/photoblog/node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:462:13) at Compiler.applyPluginsAsyncSeries (/Users/mackinjosh/Applications/photoblog/node_modules/tapable/lib/Tapable.js:206:13)

I was able to compile everything perfectly until I loaded the forms module

2 Answers

Is your forms module imported in app.module?

It needs to be imported and listed in the important array

Josue Castillo
Josue Castillo
1,349 Points

Alexander, yes I imported it in app.module, I am almost certain it isn't a syntax error I have been running it and re-running it to make sure it worked and then suddenly it stopped working. I tried undoing it and still same error.