Closed ndcunningham closed 1 month ago
tailwind config is wrong.
There is no part in pretier-plugin-tailwindcss that modifies tailwind.config.js (https://github.com/tailwindlabs/prettier-plugin-tailwindcss)
const { join } = require('path');
const prettierPlugin = require("prettier-plugin-tailwindcss");
module.exports = {
content: [
join(
__dirname,
'{src,pages,components,app}/**/*!(*.stories|*.spec).{ts,tsx,html}'
),
],
theme: {
extend: {},
},
// "plugins": [prettierPlugin], // <- Remove this line
};
Even with that line removed, the same outcome persists. As long as it is imported, using --turbo
will still result in an error.
@ndcunningham You're right, you should erase both.
const { join } = require('path');
// const prettierPlugin = require("prettier-plugin-tailwindcss");
module.exports = {
content: [
join(
__dirname,
'{src,pages,components,app}/**/*!(*.stories|*.spec).{ts,tsx,html}'
),
],
theme: {
extend: {},
},
// "plugins": [prettierPlugin],
};
That's not how it's used in official documents, so there's nothing to say about the error
Could be related to https://github.com/vercel/next.js/issues/60363#issuecomment-1890480269
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Link to the code that reproduces this issue
https://github.com/ndcunningham/nextjs-tw
To Reproduce
"prettier-plugin-tailwindcss"
) but any should really workmodule.exports = { content: [ join( __dirname, '{src,pages,components,app}/*/!(.stories|.spec).{ts,tsx,html}' ), ], theme: { extend: {}, }, "plugins": [prettierPlugin], }
Expected
There should be no issues as this works correctly without
--turbo
Provide environment information
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I tested the reproduction with canary and it is also experiencing the same issues. Using nextjs version
14.1.4
also reproduces the same issues.