Skip to content
This repository was archived by the owner on May 20, 2024. It is now read-only.

Nuxt Tailwind and Prismic Postcss error on generate #17

Open
kurodaSensei opened this issue Apr 12, 2021 · 3 comments
Open

Nuxt Tailwind and Prismic Postcss error on generate #17

kurodaSensei opened this issue Apr 12, 2021 · 3 comments

Comments

@kurodaSensei
Copy link

Hi, I am trying to start a project with Nuxt Tailwind and Prismic, I am following your official guide for nuxt, everything is fine in the installation and development, the problem comes when I want to generate my file for production with npm run build, I get the following error:

Captura de pantalla de 2021-04-12 15-12-28

because of this I have not been able to continue with my development and it is a pity.

He saw this issue #15

But I have tried all the solutions described there and none of them have worked, if anyone knows how to help me solve this problem it would be of great help.

Here is my public repository with the implementation of Nuxt, Prismic and Tailwind css

https://github.com/kurodaSensei/nuxt-tailwind-prismic-case

@redjor
Copy link

redjor commented Jul 23, 2021

Any solution?

@lihbr
Copy link
Member

lihbr commented Jul 27, 2021

Hey, I'm really sorry this issue slipped through our radar. Considering the above, I'd suggest updating dependencies (nuxt, @nuxtjs/tailwindcss especially, except sass-loader) and removing postcss, then giving it another go.

If this still doesn't work let us know here or open a new thread on our community forum

@phillysnow
Copy link

One of our users on the forum pointed out another useful part of the solution

The workaround is to add the following in nuxt.config.js...

build: {
	postcss: {
		plugins: {
			'postcss-custom-properties': false
		}
	}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants