This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
ERR_REQUIRE_ESM error within NextJS project. #18
Comments
I'm having the same issue. Added esmExternals: "loose", but it's also not working! |
I'm also having the same issue. |
Adding this to
|
Did not work for me :/ |
|
Worked for me, thank you! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This error pops up whenever I try to use the SEO Pane in a studio which is embedded within a NextJS project
It seems as if this row in
dist/index.js
is the culprit:var lodashEs = require('lodash-es');
(line 10)I've added
esmExternals: "loose"
to next.config.mjs but it doesn't help. I'm using the latest versions of Next, Sanity and the plugin itself.Help would be much appreciated :)
The text was updated successfully, but these errors were encountered: