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

npm run dev gives vitejs warning #146

Open
alarbada opened this issue Feb 24, 2024 · 2 comments
Open

npm run dev gives vitejs warning #146

alarbada opened this issue Feb 24, 2024 · 2 comments

Comments

@alarbada
Copy link

alarbada commented Feb 24, 2024

The template is for ts-tailwindcss

The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
@Mathnerd314
Copy link

I got it for the js template too. Fix is to add "type": "module", to package.json.

@dragove
Copy link

dragove commented Aug 14, 2024

mv vite.config.js or vite.config.ts to vite.config.mjs or vite.config.mts

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

3 participants