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

命令行编译安卓平台有异常:WebpackOptionsValidationError #18130

Open
LouisSong opened this issue Jan 6, 2025 · 2 comments
Open
Assignees
Labels
Bug Needs Triage Needs to be assigned by the team

Comments

@LouisSong
Copy link

Cocos Creator version

3.8.3

System information

Windows11

Issue description

命令行编译安卓平台,显示有异常,但是打包可以成功,我们这个工程是必现的:

2025-1-6 09:09:47 - debug: native:(onAfterBundleDataTask) start..., progress: 23%

2025-1-6 09:09:47 - debug: // ---- build task native:onAfterBundleDataTask ----

2025-1-6 09:09:47 - debug: // ---- build task native:onAfterBundleDataTask ---- (1ms)

2025-1-6 09:09:47 - debug: native:(onAfterBundleDataTask) in 1 ms ✓, progress: 23%

2025-1-6 09:09:47 - debug: 打包脚本 start, progress: 23%

2025-1-6 09:09:47 - debug: // ---- build task 打包脚本 ----

2025-1-6 09:09:47 - debug: Caught exception during build core-js: WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.entry should be an non-empty array.
   -> A non-empty array of non-empty strings
This may indicates the core-js polyfill is not necessary. See https://github.com/zloirock/core-js/issues/822

Relevant error log output

No response

Steps to reproduce

Jenkins调用命令行打包,就出现了,只有这个工程出现。

Minimal reproduction project

No response

@LouisSong LouisSong added Bug Needs Triage Needs to be assigned by the team labels Jan 6, 2025
@dumganhar
Copy link
Contributor

@LouisSong 项目有什么特殊的配置吗?新建的空项目不会?

@LouisSong
Copy link
Author

LouisSong commented Jan 8, 2025

image
cocoscreator3.8.3试了下,新项目也有的,你可以试一下,构建完成后看日志就行。
我上面说”只有这个工程出现“修正下,是安卓平台编译都会出现,其他项目编译的wx平台和webdestop,没这个问题。

@LouisSong 项目有什么特殊的配置吗?新建的空项目不会?

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