Open IngoVals opened 1 month ago
Issue seems to be related to PNPM.
Tried
rm -rf node_modules/
npm i
And did not have the same issues
It seems to be an issue with missing tailwind@4.0.0-alpha.17
package.
@tailwind/vite
does not include it as a peer dependency, but tries to resolve like it is a regular dependency. I'm thinking that since Yarn and NPM hoist all packages up it works, but in the case of PNPM it does not.
Since I think tailwind will probably became a peer dep in a future release anyways the fix here is just to add "tailwindcss": "4.0.0-alpha.17"
under devDependencies in the template.
What is the location of your example repository?
https://github.com/IngoVals/drangeyEDIT: Repo is now private, if needed I can create a new one from that commit, just @ me.
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2024.7.7
What version of Remix are you using?
2.12.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.6.2)
Steps to Reproduce
Fetch repo, need to have PNPM, possibly any package manager has same error, not checked.
Route to localhost:3000
All seems fine but error reported in console.
Expected Behavior
Brand new install of Hydrogen, no changes, using tailwind v4 Alpha given in CLI options.
Run project and everything works
Actual Behavior
The tailwind.css file reports error, VITE doesn't seem to be able to resolve
@import 'tailwindcss';