nextjs13 styles work and then suddenly stop

i have a problem with my styles in next js. I’m using tailwind, after running npm run dev and when I first enter the server everything works fine, however immediately all the styles get deleted and i got network error like
Request URL: http://localhost:3000/_next/static/css/app/layout.css?v=1707472278915 Request Method: GET Status Code: 404 Not Found Remote Address: [::1]:3000 Referrer Policy: strict-origin-when-cross-origin

i tried reinstall app

  • It feels like the CORS policy on localhost is getting in the way. Maybe this will help?

    – 

  • Can you add enough information so we would have a Minimal, Reproducible Example.

    – 

Leave a Comment