0

I am the only frontend guy who gets the error when running Patternlab, while other devs seem to start it normally, I get the next error message (cross-browser)

enter image description here

I cannot seem to fix it no matter what I try, set up the project new, set up a new instance of Patternlab, delete and reinstall node, and so on. Does someone have a clue what could be the issue and how to fix it?

I use a Macbook Pro (Idk if my OS or overall some aspects of my machine have any influence on this)

Nine
  • 33
  • 4
  • Looks like Content Security Policy header is published by the backend. For example NodeJS with Helmet 4 publishes its own default Content Security Policy. Check the concole do you have CSP HTTP header, tutorial is [here](https://stackoverflow.com/questions/64060894/trouble-with-content-security-policy/64068629#64068629). – granty Feb 17 '21 at 05:59
  • @granty I managed to fix it to some degree, the issue with CSP but rn I have encountered another issue, which is that after starting my pattern lab instance I only get the listing directory – Nine Feb 17 '21 at 09:22
  • 1
    CSP must be fixed to no any errors in the console. Anyway you can disable CSP header to check is it affect you lab instance or not. – granty Feb 17 '21 at 12:27
  • 1
    @granty Thanks for the tip, anyways found the answer, someone installed some patches on certain packaged in the node modules and it messed up my setup after I tried installing the package.json packages as there were missmatched React versions, so yeah the solution was to install these 2 packages separately which were affected by the patch and then installation ran smoothly – Nine Feb 18 '21 at 12:04

0 Answers0