Closed LouVerdun closed 5 months ago
I'm having a similar issue.
Error
node_modules/sanity-plugin-mux-input/lib/index.js (778:18) @ eval
⨯ TypeError: styled_components__WEBPACK_IMPORTED_MODULE_15__ is not a function
at __webpack_require__ (/Users/devanflaherty/Developer/Alchemy/moment-studio/.next/server/webpack-runtime.js:33:43)
...
I was utilizing v2.2.3
and attempted this esmExternals: 'loose'
as well, but to no avail.
"next": "^13.5.4",
"sanity-plugin-mux-input": "^2.2.3",
After finding this issue I was able to downgrade to version 2.2.1
and my app builds successfully now.
This issue mentioned a similar issue, seems they got it to work with version 2.2.1
.
I can verify that pointing to 2.2.1
does get rid of the error.
Hello,
I'm having an issur with styled-components and Mux Sanity plugin. I'm using Next.js 13 with an embedded Sanity setup. After installing the plugin, it throws an error in the console:
An error is also thrown on the frontend (at least in dev mode), like so.
Would you have an idea on how to avoid or fix this issue? I've tried replacing imports from 'styled-components' to 'styled-components/native', as per this Stack Overflow issue.
Thank you in advance for your answer!