Skip to content
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

ReferenceError: require is not defined in tailwind.config.js #45

Open
Piyush-linux opened this issue Feb 5, 2025 · 0 comments
Open

Comments

@Piyush-linux
Copy link

📔 Description:
When attempting to run Tailwind CSS with a tailwind.config.js file, the following error occurs:

Code :

file:///home/zen/Desktop/Del/ollama-gui/tailwind.config.js:1
const defaultTheme = require('tailwindcss/defaultTheme')
                     ^
ReferenceError: require is not defined

This issue arises because require() is not available in an ES module environment.

🔥 Solutions:

import defaultTheme from 'tailwindcss/defaultTheme'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant