Skip to content

fix: add 'type: module' to package.json to support ESM bundlers (#327) #338

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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Prajwal04M
Copy link

What this does

Adds "type": "module" to the package.json to ensure proper ESM support for bundlers like Vite and Vitest.

Why

This resolves the error:

Module ... seems to be an ES Module but shipped in a CommonJS package.

Fixes

Closes #327

Copy link

codesandbox bot commented Jul 22, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

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.

Add the "type": "module" to the package.json file
1 participant