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

ESM errors due to require of sub-package #182

Open
crutchcorn opened this issue Jan 11, 2025 · 0 comments · May be fixed by #183
Open

ESM errors due to require of sub-package #182

crutchcorn opened this issue Jan 11, 2025 · 0 comments · May be fixed by #183

Comments

@crutchcorn
Copy link

When running a new project with JSDom via Vitest, I get the following error:

Error: require() of ES Module C:\Users\crutchcorn\git\TanStack\form\node_modules\.pnpm\@[email protected]\node_modules\@asamuzakjp\css-color\dist\esm\css-color.min.js from C:\Users\crutchcorn\git\TanStack\form\node_modules\.pnpm\[email protected]\node_modules\cssstyle\lib\parsers.js not supported.

This appears to be because:

4.2.0 introduced @asamuzakjp/css-color, which seems to be packaged incorrectly for ESM usage in this PR:

#171

I'll make an issue upstream to https://github.com/asamuzaK/cssColor to try and suggest some changes there, but wanted to flag here since it appears to affect many JSDom projects as-is

asamuzaK added a commit to asamuzaK/cssstyle that referenced this issue Jan 14, 2025
@asamuzaK asamuzaK linked a pull request Jan 14, 2025 that will close this issue
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 a pull request may close this issue.

1 participant