ts Cannot find the module
-
18-01-2021 - |
Frage
I am very new to the SPFx I just started. I was making my first web part in Visual Studio Code but I was having some difficulty in my code. May be somebody can help. I have scss module in the same folder FeedbackWebPart.module.scss
But in my FeedbackWebPart.ts show me error [ts] Cannot find the module './FeedbackWebPart.module.scss'
Can somebody tell me what is wrong as this code is not written by me but it generated by Yomean @microsoft/sharepoint
Lösung
It looks like it is bug in visual studio code or may be in yomean or may be in typescript because when I run
gulp serve
it compile web part and resolve the issue by it self. Hope this can help someone else.
Andere Tipps
Its just an Code Editor issues. The build will be successful.
It's the editor issue.
Just close and open the editor, the error will be gone.
Or just ignore it, gulp serve
will run fine.