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

When install NPM package fflate, import it in the project it occur errors #17574

Open
tangkaikk opened this issue Aug 22, 2024 · 0 comments
Open
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@tangkaikk
Copy link
Contributor

Cocos Creator version

3.x

System information

All

Issue description

When install NPM package fflate, import it in the project it occurs error " Error: Error: Unexpected export statement in CJS module."

Relevant error log output

image

Steps to reproduce

1.new a project
2. npm fflate
3. import fflate in the script, add the script to the scene.

Minimal reproduction project

fflateNpmPack1.zip

@tangkaikk tangkaikk added Bug Needs Triage Needs to be assigned by the team labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

2 participants