e2b-dev / fragments

Open-source Next.js template for building apps that are fully generated by AI. By E2B.
https://fragments.e2b.dev
Apache License 2.0
3.48k stars 455 forks source link

CSS loading issue? #1

Closed michaltakac closed 4 months ago

michaltakac commented 4 months ago

This is how the app looks like when I open it in Safar/Chrome/Firefox:

Screenshot 2024-07-17 at 12 06 37

Seems like it is not loading Tailwind properly.

mlejva commented 4 months ago

Do you have any terminal output or errors? Because I can't reproduce it

michaltakac commented 4 months ago

No, all is running properly. Maybe some local network issue on my side or something then... investigating.

michaltakac commented 4 months ago

I installed dependencies with pnpm i. Idk if that might have contributed to this problem:

When I change "dev": "next dev --turbo" to "dev": "next dev", I got CSS working properly.

Screenshot 2024-07-17 at 15 27 15

So there's some problem with turbopack on my side. Will try to reinstall node modules with npm i.

michaltakac commented 4 months ago

Yes, installing it with pnpm i was the issue. npm i works with turbopack.

Screenshot 2024-07-17 at 15 34 02