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

Tiled plugin crashes on empty or absent object layer #453

Closed
eonarheim opened this issue Aug 10, 2023 · 0 comments · Fixed by #454
Closed

Tiled plugin crashes on empty or absent object layer #453

eonarheim opened this issue Aug 10, 2023 · 0 comments · Fixed by #454

Comments

@eonarheim
Copy link
Member

Reproduced locally with https://github.com/excaliburjs/sample-tiled-webpack

Delete the object layer in Tiled

image

Discussed in excaliburjs/Excalibur#2735

Originally posted by depsypher August 9, 2023
Trying to get a simple tile map working in a webpack project and keep getting this:

Cannot read properties of undefined (reading 'length')
TypeError: Cannot read properties of undefined (reading 'length')
    at B._addTiledText (http://localhost:8080/vendors-node_modules_excaliburjs_plugin-tiled_dist_excalibur-tiled_min_js-node_modules_webpac-9180a4.js:29820:77793)
    at B.addTiledMapToScene (http://localhost:8080/vendors-node_modules_excaliburjs_plugin-tiled_dist_excalibur-tiled_min_js-node_modules_webpac-9180a4.js:29820:79860)
    at http://localhost:8080/main.js:72:59

Is that enough of a clue for someone here to see what the issue is? Alternatively, is there any recent bare-bones example project available I can crib from? The one pointed to in the docs is pretty out of date so I've been trying to lift out what I need from it into a new project, but so far no go.

@eonarheim eonarheim transferred this issue from excaliburjs/Excalibur Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant