Skip to content

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

@marcinincreo

Description

@marcinincreo

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;

at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions