Skip to content

eliza3291/nextjs-postcss-tailwind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Getting Started

First, create a conda environment in the root directory of the application and activate it:

conda create --yes --prefix ./.conda-env --file conda.txt
conda activate .conda-env

Second, install dependencies:

cd nextjs-postcss-tailwind
npm install

Finally, run the development server:

npm run dev

Error should appear in the terminal or in the browser:

Error: tailwindcss is not a PostCSS plugin

Open http://localhost:3000 with your browser to see the error.

Learn More

To learn more about how to configure Next.js, Tailwind, Postcss and it's plugins:

Expected behaviour

Tailwindcss plugin is found when called inside beforeEach without require() as defined in the Next.js documentation.

Workaround in the meantime

Call Tailwindcss plugin inside beforeEach with require function and impact the perfomance of the application.

Use postcss-each v0.10.0 with medium vulnerabilities.

About

Describe Next.js issue

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published