Build Error ENOENT: no such file or directory, open (3.6.2)

I uses Circleci for build my game by command line but error ENOENT occurs please help.

this command work on 3.5.0
build command: cocosCreator/3.6.2/CocosCreator.app/Contents/MacOS/CocosCreator --project ./sourcecode --build “configPath=./sourcecode/buildConfig_web-mobile.json”

error [Build] ENOENT: no such file or directory, open ‘/Users/distiller/project/sourcecode/library/1b/1b701148-56b0-44ca-9160-ababd4c4e0ad.json’
12-8-2022 07:13:17-error: Error: ENOENT: no such file or directory, open ‘/Users/distiller/project/sourcecode/library/1b/1b701148-56b0-44ca-9160-ababd4c4e0ad.json’

error never same for each build times

1 Like

Is this file regenerated in 3.6.2?

yes, i regenerated this from cocos 3.6.2

this is my file

{
“name”: “name”,
“platform”: “web-mobile”,
“buildPath”: “project://build”,
“debug”: true,
“md5Cache”: false,
“skipCompressTexture”: true,
“sourceMaps”: false,
“polyfills”: {
“asyncFunctions”: true
},
“experimentalEraseModules”: true,
“useBuiltinServer”: false,
“mainBundleIsRemote”: false,
“mainBundleCompressionType”: “merge_dep”,
“replaceSplashScreen”: false,
“startScene”: “b55523f9-9666-46fa-8672-1a928304b82f”,
“outputName”: “web-mobile-001”,
“scenes”: [
{
“url”: “db://assets/x1.scene”,
“uuid”: “6a6b9631-bed8-4034-8ceb-bb62f507a962”,
“inBundle”: false
},
{
“url”: “db://assets/x2.scene”,
“uuid”: “2190c8cd-b644-4cf9-822d-2a46d7b28e14”,
“inBundle”: false
},
{
“url”: “db://assets/x3.scene”,
“uuid”: “b55523f9-9666-46fa-8672-1a928304b82f”,
“inBundle”: false
},
{
“url”: “db://assets/x4.scene”,
“uuid”: “a83abb93-145f-4c01-946c-d50c8bd750d2”,
“inBundle”: false
},
{
“url”: “db://assets/x5.scene”,
“uuid”: “77adc952-9264-415f-bf60-c3b1aa240b29”,
“inBundle”: false
},
{
“url”: “db://assets/welcome.scene”,
“uuid”: “621b8215-c3ab-4e42-b8fd-8978f6e87609”,
“inBundle”: false
}
],
“web-mobile”: ,
“packages”: {
“web-mobile”: {
“orientation”: “portrait”,
“embedWebDebugger”: false,
“version”: “1.0.1”
},
“cocos-service”: {
“configID”: “c67bc0”,
“services”: ,
“version”: “3.0.4”
}
},
“version”: “1.3.3”
}

Can this file be found? It could be that a asset was mistakenly deleted from the project.

I found that file after finished build command line but in my opinion that did created before that error occurs.

I try to build on my mac. i found same problem too when i build by command line at the first time without library folder in my project then try to build 2nd time error did not happen.

I think build process didn’t create that file yet while process have been loading that file.

1st build by command line

[Build] ENOENT: no such file or directory, open ‘/Users/me/Documents/sourcetree/project/library/dd/dd84600d-b4a0-4a00-8dc4-9cbcc00cccee@709f9.json’

12-9-2022 11:07:58-error: Error: ENOENT: no such file or directory, open ‘/Users/me/Documents/sourcetree/project/library/dd/dd84600d-b4a0-4a00-8dc4-9cbcc00cccee@709f9.json’

[Build] ENOENT: no such file or directory, open ‘/Users/me/Documents/sourcetree/project/library/dd/dd84600d-b4a0-4a00-8dc4-9cbcc00cccee@709f9.json’

12-9-2022 11:07:58-error: Error: ENOENT: no such file or directory, open ‘/Users/me/Documents/sourcetree/project/library/dd/dd84600d-b4a0-4a00-8dc4-9cbcc00cccee@709f9.json’

12-9-2022 11:07:58-debug: ================================ Build Task (web-mobile-001) Finished in (1672)ms ================================

2nd build by command line

12-9-2022 11:12:16-debug: Use build-template {link(/Users/me/Documents/sourcetree/project/build-templates/web-mobile)}.

12-9-2022 11:12:16-debug: // ---- build task web-mobile:onAfterBuild ---- (32ms)

12-9-2022 11:12:16-debug: web-mobile:(onAfterBuild) in 32 ms82%

12-9-2022 11:12:16-debug: cocos-service:(onAfterBuild) start…82%

12-9-2022 11:12:16-debug: // ---- build task cocos-service:onAfterBuild ----

12-9-2022 11:12:16-debug: Process: heapTotal 241.80MB heapUsed 227.29MB rss 743.61MB

12-9-2022 11:12:16-debug: // ---- build task cocos-service:onAfterBuild ---- (3ms)

12-9-2022 11:12:16-debug: cocos-service:(onAfterBuild) in 3 ms83%

12-9-2022 11:12:16-debug: builder:build-project-total (40461ms)

12-9-2022 11:12:16-debug: build success in 40461 ms!

12-9-2022 11:12:16-debug: ================================ Build Task (web-mobile-001) Finished in (40474)ms ================================

What do you mean without library folder? actually is necessary to have this folder, it contains files metas.

cocos will build our asset files to folder. That folder name is “library”.

when we build at 1st time we don’t have that folder before that i mean.

These files