Skip to content

报错了 #1

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

Open
yzcheng90 opened this issue Jun 15, 2023 · 2 comments
Open

报错了 #1

yzcheng90 opened this issue Jun 15, 2023 · 2 comments

Comments

@yzcheng90
Copy link

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

@Checkson
Copy link
Owner

Ok,我国庆假期期间处理支持一下ES Module

@Checkson
Copy link
Owner

Checkson commented Oct 3, 2023

处理好了,import PAQ from 'priority-async-queue'; 试试。

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