-
Notifications
You must be signed in to change notification settings - Fork 187
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
New module v6.13 isn't working on freshly started project #939
Comments
I had the same problem with layers. I have forced the version to "@nuxtjs/tailwindcss": "^6.12.1" until they |
Previous // generated by the @nuxtjs/tailwindcss <project-path>node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@nuxtjs/tailwindcss/dist/runtime/merger.js");
const inlineConfig = {"content":[],"theme":{"extend":{}},"plugins":[]};
const config = [
require("<package-path>/tailwind.config.ts")
].reduce((prev, curr) => configMerger(curr, prev), configMerger(inlineConfig, { content: { files: [...] } }));
module.exports = config New // generated by the @nuxtjs/tailwindcss <https://github.com/nuxt-modules/tailwindcss> module at 1/14/2025, 12:47:04 AM
import configMerger from "@nuxtjs/tailwindcss/merger";
import cfg2 from "./../../tailwind.config";
import cfg4 from "<package-path>/tailwind.config.ts";
const config = [
{"content":{"files":[...]}},
{},
cfg2,
{...},
cfg4
].reduce((acc, curr) => configMerger(acc, curr), {});
const resolvedConfig = config;
export default resolvedConfig; ... where |
I fixed the error by manually initialising tailwind config using the |
Apologies about this bug! Seems like a check is missing here: https://github.com/nuxt-modules/tailwindcss/blob/main/src/internal-context/load.ts#L110 (I thought that c12 returned undefined for non-resolved paths, but that's not the case - https://github.com/unjs/c12/blob/main/src/loader.ts#L376) Will release a fix in an hour. |
v6.13.1 released. Let me know if it persists. |
Looks good at first glance, thanks! ❤️ |
Hi @ineshbose, I have v6.13.1 of the
|
@ineshbose, did you see my comment above with a different error message?
|
Apologies! Could you open a new issue please? 🙏 |
No worries at all! Of course 👍 |
My issue here was with tailwindcss class sorting. {
"printWidth": 120,
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"quoteProps": "consistent",
"bracketSameLine": false,
"plugins": ["prettier-plugin-tailwindcss"],
- "tailwindConfig": "./.nuxt/tailwind.config.cjs"
+ "tailwindConfig": "./.nuxt/tailwind/postcss.mjs"
}
|
So we don't have intellisense for tailwind classes now |
Environment
Reproduction
Create a new nuxt project with nuxi 3.20.0
npx nuxi@latest init my-nuxt-project
Install Nuxt tailwindcss module
npx nuxi module add tailwindcss
Run dev and it will fail
npm run dev
With the following error:
Describe the bug
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: