-
Notifications
You must be signed in to change notification settings - Fork 9
Comments
Hey @lrocher91, thanks for opening an issue! Since you closed it I assume you figured out a workaround, let us know if anything! |
Hi, The tailwind documentation about nuxt says : It's working if i install tailwind without the |
Ok, have no worries Indeed Nuxt.js wasn't supporting PostCSS 8 until recently so to use Tailwind 2 you had to install: However the latest version of Nuxt ( If you have any issue regarding Nuxt.js modules feel free to hope on Nuxt.js Discord, there's a friendly community there always keen to help~ Also to display your code beautifully within GitHub issues (and MarkDown more generally), you need to wrap it within fences (3 backticks): ``` Some code to highlight... ``` Will produce:
You can even have syntax highlight by specifying a language after the first fence: ```javascript console.log("Hello World"); ``` Will produce: console.log("Hello World"); Cheers! |
I tried to update to nuxt
Here is my package.json :
Thanks for your time 😉 |
Got it, looks like you're missing
|
It don't seems to be working, I removed yarn.lock, node_modules and i have the same issue. Here is my updated package.json
|
Okay, is your repository open source by any chance? Or can you try to create a minimum reproduction? This will help us to figure out what's going on here 🙂 |
I just created a public repo : Thanks |
Okay, looks like it was due to some overall dependencies being outdated. If you don't mind I went ahead and submitted a PR on your repo so you can have a look at changes made to get it working: lrocher91/nuxt-prismic-postcss#1 |
Many thanks you saved my day :) Edit: It seems that i claimed victory to soon, i still have issues with PostCSS. Theses dependencies issues are a real headache 🤕 I just push in the repo, the only change is commenting the main.scss file. Now when i try to generate, i got :
I tried to add |
I finally got it working by starting a new nuxt project from scratch. |
The workaround for this is to add the following to nuxt.config.js...
|
Thanks for sharing @tomfri! 🙏 I'm sorry you had to run through those issues, if this library causes you issues you can also get rid of it if you don't use it |
Thank you SO much @tomfri!! Worked great for me! ❤️ |
for me the solution was to change the order of multiplication in calc: Old: img {
margin: 1rem calc(var(--card-body-padding-x) * -1);
} Replaced: img {
margin: 1rem calc(-1 * var(--card-body-padding-x));
} And after that the generation was successful. I think this only for calc with custom ccs properties |
I have an issue with postcss when i try to compile with
yarn generate
referencing theFeatureTestimonials
slice :If i comment the <style> part of the
FeatureTestimonials/index.vue
file, the error is gone.Here is my package.json :
The text was updated successfully, but these errors were encountered: