cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

When install NPM package fflate, build the project it occur errors

Open tangkaikk opened this issue 1 year ago • 0 comments

Cocos Creator version

3.x

System information

All

Issue description

When install NPM package fflate, build the project it occur errors :"[Build] [build-script]ModuleNotFoundError: (i18n needed)resolve_error_module_not_found: {"specifier":"worker_threads","parentURL":"file:///E:/cocosTestProjects/fflateNpmPack/node_modules/fflate/umd/index.js"}"

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. 4. build the project.

Minimal reproduction project

fflateNpmPack.zip

tangkaikk avatar Aug 22 '24 08:08 tangkaikk