Cannot Find the Module Error spfx webpart

%3CLINGO-SUB%20id%3D%22lingo-sub-116559%22%20slang%3D%22en-US%22%3ECannot%20Find%20the%20Module%20Error%20spfx%20webpart%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-116559%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20scaffold-ed%20an%20spfx%20webppart%20project.%20But%20I%20am%20getting%20the%20following%20errors%20on%20compilation%3A%3C%2FP%3E%3CP%3E-%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECannot%20find%20module%20'ToDoWebPartStrings'%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E-%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ECannot%20find%20module%20'.%2FToDo.module.scss'%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E-%26gt%3B%20Accessors%20are%20only%20available%20when%20targeting%20ECMAScript%205%20and%20higher%3C%2FP%3E%3CP%3E-%26gt%3B%20I%20tried%20creating%20an%20spfx%20webpart%20using%20Angular%20js.%20I%20followed%20this%20blog%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fweb-parts%2Fguidance%2Fbuild-client-side-web-parts-with-angular-1-x%22%20rel%3D%22noreferrer%20noopener%22%20target%3D%22_blank%22%3EBuild%20SharePoint%20Framework%20client-side%20web%20parts%20with%20AngularJS%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EEven%20in%20the%20blog%2C%20an%20error%20is%20visible%20which%20the%20author%20has%20discarded%20unfortunately.%20Any%20help%2FSuggestions%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I have scaffold-ed an spfx webppart project. But I am getting the following errors on compilation:

-> Cannot find module 'ToDoWebPartStrings'

-> Cannot find module './ToDo.module.scss'

-> Accessors are only available when targeting ECMAScript 5 and higher

-> I tried creating an spfx webpart using Angular js. I followed this blog Build SharePoint Framework client-side web parts with AngularJS

 

Even in the blog, an error is visible which the author has discarded unfortunately. Any help/Suggestions?

0 Replies