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

v1.1.2 ERR_REQUIRE_ESM with nanoid v4.0.2 #70

Open
amidadigital opened this issue Feb 20, 2024 · 1 comment
Open

v1.1.2 ERR_REQUIRE_ESM with nanoid v4.0.2 #70

amidadigital opened this issue Feb 20, 2024 · 1 comment

Comments

@amidadigital
Copy link

Updating to the latest v1.1.2 results in the following error in the studio:

Error [ERR_REQUIRE_ESM]: require() of ES Module ...\[email protected]\node_modules\nanoid\index.js Instead change the require of ...\[email protected]\node_modules\nanoid\index.js in ...\[email protected][email protected][email protected][email protected][email protected][email protected]\node_modules\sanity-plugin-cloudinary\lib\index.js to a dynamic import() which is available in all CommonJS modules

Using pnpm.

Packages:

"sanity": "3.30.0",
"sanity-plugin-cloudinary": "^1.1.2"

Changelog in v1.1.2 shows that nanoid dependency was updated to v4. Reverting back to v1.1.1 fixes the issue while integrating the fix to resolve the styled components issue provided by @djfarly in #50 (comment)_

@henrybabbage
Copy link

Seeing this same issue too

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

2 participants