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

ReferenceError: exports is not defined in ES module scope #11

Open
Ivanwangcy opened this issue Sep 4, 2023 · 1 comment
Open

ReferenceError: exports is not defined in ES module scope #11

Ivanwangcy opened this issue Sep 4, 2023 · 1 comment

Comments

@Ivanwangcy
Copy link

This file is being treated as an ES module because it has a '.js' file extension and '/Users/wangchunyu40/workspace/global-express-m/node_modules/vue-clipboard3/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.

@benrolfe
Copy link

I had the same issue:

image

nekolii7 added a commit to nekolii7/vue-clipboard3 that referenced this issue Jan 18, 2024
Solves issue JamieCurnow#11:
`ReferenceError: exports is not defined in ES module scope
This file is being treated as an ES module because it has a '.js' file extension and '/home/jesman/Projects/_Frontend/marketplace-customer-account-v1/node_modules/vue-clipboard3/package.json' contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.`
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

2 participants