Compile error: violates the following Content Security Policy directive

I had the same problem and it was due to a routing problem “ERROR in Could not resolve module … to …module.ts”.

So this error message in the browser console actually didn’t have anything to do with the real problem, which was that I didn’t set the path right of one of my child modules. Check your terminal if you might have an error showing up adn try to resolve that error.

1 Like