Skip to content

ReferenceError: require is not defined #49

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

Open
bergstar opened this issue Nov 7, 2024 · 0 comments
Open

ReferenceError: require is not defined #49

bergstar opened this issue Nov 7, 2024 · 0 comments

Comments

@bergstar
Copy link

bergstar commented Nov 7, 2024

Clean install with base installtion, no additional modules or package, gives the following error:

➜  project git:(master) ✗ npm run build

> build
> vite build

vite v5.4.10 building for production...
transforming (1) resources/js/app.js(node:67373) ExperimentalWarning: CommonJS module /project/node_modules/tailwindcss/lib/lib/load-config.js is loading ES Module /project/tailwind.config.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
file:///project/tailwind.config.js:1
const defaultTheme = require('tailwindcss/defaultTheme')
                     ^

ReferenceError: require is not defined
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