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

ESM support #2

Closed
HiDeoo opened this issue Jul 18, 2022 · 2 comments
Closed

ESM support #2

HiDeoo opened this issue Jul 18, 2022 · 2 comments
Labels

Comments

@HiDeoo
Copy link

HiDeoo commented Jul 18, 2022

When using this plugin in a project specifying "type": "module" in its package.json, no tests can be run due to the following error:

import { isMatch } from "micromatch";
         ^^^^^^^
SyntaxError: Named export 'isMatch' not found. The requested module 'micromatch' 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 'micromatch';
const { isMatch } = pkg;

You can find a repro of the issue in this repository.

@github-actions
Copy link

🎉 This issue has been resolved in version 1.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@skarab42
Copy link
Owner

@HiDeoo Thank you for taking the time to report this issue 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants