Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR in pathType.isDirectory is not a function

I am geting an error ERROR in pathType.isDirectory is not a function whenever I run ng serve in the terminal. When checking the console the error says:

Refused to load the image 'http://localhost:4200/favicon.ico' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback. as well as the classic 404.

I have tried deleting the favicon.ico as well as updating to the latest versions of node, npm and angular to no avail. Any suggestions/help on how I can debug this?

like image 871
Beezyisonline Avatar asked Dec 22 '22 17:12

Beezyisonline


1 Answers

Wasn't sure about the core of the problem but if this happens to anybody maybe this will work. I deleted the node_modules of my project and reran npm install to refresh my project.

like image 57
Beezyisonline Avatar answered Dec 28 '22 11:12

Beezyisonline