Named export 'VsmMenu' not found.
MtDalPizzol opened this issue · comments
Matheus Dal'Pizzol commented
I'm getting an error related with named exports that I believe to be related with newer NodeJS versions. I'm using Node 19.0.0.
import { VsmMenu, VsmMob } from "vue-stripe-menu";
^^^^^^^
SyntaxError: Named export 'VsmMenu' not found. The requested module 'vue-stripe-menu' 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-stripe-menu';
const { VsmMenu, VsmMob } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:123:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:189:5)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:518:24)
at async loadESM (node:internal/process/esm_loader:102:5)
at async handleMainPromise (node:internal/modules/run_main:66:12)
Node.js v19.0.0