Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named export 'VsmMenu' not found. #257

Open
MtDalPizzol opened this issue Apr 25, 2023 · 0 comments
Open

Named export 'VsmMenu' not found. #257

MtDalPizzol opened this issue Apr 25, 2023 · 0 comments

Comments

@MtDalPizzol
Copy link

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
@MtDalPizzol MtDalPizzol changed the title [BUG] Named export 'VsmMenu' not found. Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant