-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Continuation of the #247 issue as it has not been fixed.
Version
vue-final-modal: 4.0.1
vue: 3.2.47
OS
Windows
Reproduction Link
https://codesandbox.io/p/sandbox/distracted-field-p1orne
Steps to reproduce
- Import module as Native ESM
What is Expected?
Imported module
What is actually happening?
(node:1) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension
file:///project/sandbox/index.js:3
import { VueFinalModal } from "vue-final-modal";
^^^^^^^^^^^^^
SyntaxError: Named export 'VueFinalModal' not found. The requested module 'vue-final-modal' 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 'vue-final-modal';
const { VueFinalModal } = pkg;
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working