背包实例化失败找不到哪里出了问题,报错的地方看了好几遍也找不到问题,老师能帮我看看吗?
来自课程:打造你的《背包英雄》:CocosCreator游戏开发全流程教程(基础篇)
PreviewInEditor] Bag配置不存在109
TypeError: Cannot read properties of null (reading 'private_gridLen')
at GridData.initGridMapData (file:///D:/H5%E6%B8%B8%E6%88%8F/BackPackHero/temp/programming/packer-driver/targets/editor/chunks/76/76385e4313a224bdb81ac0a6a22bff1cc73f50e4.js:114:38)
at GridData.init (file:///D:/H5%E6%B8%B8%E6%88%8F/BackPackHero/temp/programming/packer-driver/targets/editor/chunks/76/76385e4313a224bdb81ac0a6a22bff1cc73f50e4.js:100:16)
at GridManager.init (file:///D:/H5%E6%B8%B8%E6%88%8F/BackPackHero/temp/programming/packer-driver/targets/editor/chunks/29/29e10ce5eb866fb517a44c2d93bfa7d0bfec48e1.js:38:46)
at Game.init (file:///D:/H5%E6%B8%B8%E6%88%8F/BackPackHero/temp/programming/packer-driver/targets/editor/chunks/c0/c0aafcc0e30fa057976c9717ab1ae7215797d557.js:141:28)
at Game.onLoad (file:///D:/H5%E6%B8%B8%E6%88%8F/BackPackHero/temp/programming/packer-driver/targets/editor/chunks/c0/c0aafcc0e30fa057976c9717ab1ae7215797d557.js:137:16)
at eval (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:48453:132)
at OneOffInvoker.eval [as _invoke] (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:46368:9)
at OneOffInvoker.invoke (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:46482:16)
at NodeActivator.activateNode (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:48504:27)
at Scene._activate (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:53203:44)
at Director.runSceneImmediate (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:15523:17)
at C:\ProgramData\cocos\editors\Creator\3.8.6\resources\app.asar\builtin\scene\dist\script\3d\manager\scene\utils.ccc:1:1367
at eval (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:117000:17)
at eval (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:124592:9)
at eval (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\resources\3d\engine\bin\.cache\dev\editor\bundled\index.js:166221:9)
at sentryWrapped (C:\ProgramData\cocos\editors\Creator\3.8.6\resources\app.asar\node_modules\src\helpers.ts:100:17)

