I have a tiledmap made in Tiled which uses a png spritesheet, without using .plist or any kind data file for the spritesheet. I have the tmx and tsx files. When I import it into a tileMap object, it gives me an error saying;
[Window] Cannot read property 'getAttribute' of undefined
TypeError: Cannot read property 'getAttribute' of undefined
at <process:scene>
at TMXMapInfo.parseXMLString (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:70169:47)
at TMXMapInfo.initWithXML (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:70080:23)
at new TMXMapInfo (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:69777:16)
at TiledMap._applyFile (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:68307:29)
at TiledMap.set tmxAsset (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:68079:18)
at TiledMap.<anonymous> (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/app.asar/builtin/scene/dist/script/3d/manager/asset/asset-watcher.ccc:1:1215)
at AssetDump.decode (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/app.asar/builtin/scene/dist/script/export/dump/types/asset-dump.ccc:1:989)
at _decodeByType (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/app.asar/builtin/scene/dist/script/export/dump/decode.ccc:1:4765)
at decodePatch (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/app.asar/builtin/scene/dist/script/export/dump/decode.ccc:1:6405)
at NodeManager.setProperty (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/app.asar/builtin/scene/dist/script/3d/manager/node/index.ccc:1:7815)
[Scene] asset can't be load:6bfe900e-6b06-42d5-99e9-3f20e6361833
Error: [Scene] asset can't be load:6bfe900e-6b06-42d5-99e9-3f20e6361833
at /Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/app.asar/builtin/scene/dist/script/export/dump/types/asset-dump.ccc:1:800
at eval (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:108631:9)
at eval (/Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/bin/.cache/dev/editor/bundled/index.js:165585:9)
How can I fix this? What is the way to achieve this? Spritesheet has 48*48 pixel tiles and Tiled uses those tiles.