You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Named export 'Feedback' not found. The requested module 'sanity-plugin-utils' is a CommonJS module, which may not support all module.exports as named exports.
#188
Open
marcinincreo opened this issue
May 5, 2024
· 3 comments
import { Feedback, useListeningQuery } from "sanity-plugin-utils";
^^^^^^^^
SyntaxError: Named export 'Feedback' not found. The requested module 'sanity-plugin-utils' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
I'm having the same issue but this only happens when I install sanity manually (The sanity code is in Sveltekit) instead of using pnpm create sanity@latest
I noticed Simeon's template is set up similar to how I set up my Sveltekit with Sanity.
For the other template, Sanity studio has its own package.json separate from remix. It seems like it will only work if it's installed with npm create sanity@latest. This isn't the only plugin I'm having issues with. This is happening with quite a few plugins I'm dealing with
import { Feedback, useListeningQuery } from "sanity-plugin-utils";
^^^^^^^^
SyntaxError: Named export 'Feedback' not found. The requested module 'sanity-plugin-utils' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'sanity-plugin-utils';
const { Feedback, useListeningQuery } = pkg;
The text was updated successfully, but these errors were encountered: