Skip to content

Fix vite esm require error#27

Open
BoSuY0 wants to merge 1 commit into
masterfrom
cursor/fix-vite-esm-require-error-9634
Open

Fix vite esm require error#27
BoSuY0 wants to merge 1 commit into
masterfrom
cursor/fix-vite-esm-require-error-9634

Conversation

@BoSuY0

@BoSuY0 BoSuY0 commented Aug 22, 2025

Copy link
Copy Markdown
Owner

Fix Vite build error by migrating project to ES modules and updating TypeScript configuration.

The build failed with ERR_REQUIRE_ESM because the Vite configuration, PostCSS, and Tailwind config files were using CommonJS require() and module.exports syntax, while Vite 7 expects ES modules. This PR updates package.json to declare type: module, modifies tsconfig.node.json for ES module compatibility, and refactors postcss.config.js and tailwind.config.js to use import and export default.


Open in Cursor Open in Web

Co-authored-by: bosuy.official <bosuy.official@gmail.com>
@cursor

cursor Bot commented Aug 22, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@BoSuY0 BoSuY0 marked this pull request as ready for review August 22, 2025 14:26
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

Successfully merging this pull request may close these issues.

2 participants