New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V4] Module dection not working in solid start #13194
Comments
Maybe a config for the vite plugin could solve this. Like suppling an options object: {
"outsideModuleGraph": "./src/routes/**/*.{ts,tsx,js,jsx}"
} |
I tried a few things today with similar issues. The main one being the error: Caution
When editing the file where tailwind is imported it seems the module is invalidated and the tailwind styles are applied. Might this also be an issue with
|
Small update |
Just made the suggested change @oddcelot and the styling issue is gone. |
What version of Tailwind CSS are you using?
v4.0.0-alpha.7
What build tool (or framework if it abstracts the build tool) are you using?
[email protected], [email protected]
What version of Node.js are you using?
v20.11.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
Stackblitz Repro
Sadly not startable in a webcontainer as it can't load native addons but this is the minimal repro.
Describe your issue
As the new vite plugin analyzes the module graph it can't detect solid starts routes. Because solid supplies a FileRoutes component which determines what to display. This probably won't notify tailwind plugin about the files. You can see in the repro that Nav gets styled as it is directly imported, but anything in routes which gets added during compile won't be styled.
The text was updated successfully, but these errors were encountered: