升级3.8.3提示illegal operation on a directory

4-24-2024 14:05:34 - log: [Scene] EISDIR: illegal operation on a directory, readError: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:592:3)
at tryReadSync (fs.js:366:20)
at readFileSync (fs.js:403:19)
at e.readFileSync (electron/js2c/asar_bundle.js:5:8872)
at Object.switchImages (/Users/rex/Downloads/CocosCreator.app/Contents/Resources/app.asar/modules/editor-extensions/extensions/reference-image/dist/contributions/scene-walker.ccc:1:1312)
4-24-2024 14:05:34 - error: EISDIR: illegal operation on a directory, readError: EISDIR: illegal operation on a directory, read
at <process:scene>
at Object.readSync (fs.js:592:3)
at tryReadSync (fs.js:366:20)
at readFileSync (fs.js:403:19)
at e.readFileSync (electron/js2c/asar_bundle.js:5:8872)
at Object.switchImages (/Users/rex/Downloads/CocosCreator.app/Contents/Resources/app.asar/modules/editor-extensions/extensions/reference-image/dist/contributions/scene-walker.ccc:1:1312)
4-24-2024 14:05:36 - info: [PreviewInEditor] 预览环境初始化完毕

image

3.8.3我们打包也遇到了
Failed to load import map at project://: Error: EISDIR: illegal operation on a directory, read

忘了咋弄的了,好像是把资源先拷出来,重新放到一个新建的3.8.3的项目里就好了