title: Invalid Tilemap Layer ID
body: <p>I was doing my game in phaser 3 when I went to add a tilemap created in tiled, I followed several tutorials, I did and redid the code several times and even then it always gives me the same invalid ID error.</p>
  <p><strong>unsuccessful attempts:</strong></p>
  <ul>
  <li>Tried to manually make the tilemap;</li>
  <li>Tried using JSON files;</li>
  <li>I tried to use a single layer;</li>
  <li>I tried to use the names according to the tiled layers;</li>
  <li>I tried using different names;</li>
  </ul>
  <p>here follows the code:</p>
  <pre><code>import './phaser'
  
  const config = {
    type: Phaser.AUTO,
    parent: &quot;phaser-example&quot;,
    width: 1824,
    height: 960,
    physics: {
        default: 'arcade'
    },
    scene: {
        preload: preload,
        create: create
    }
  };
  
  export const game = new Phaser.Game(config)
  
  function preload()
  {
    this.load.image('terrain', './complementos/tilemaps/terrainBasic.png')
    this.load.tilemapTiledJSON('map', './complementos/tilemaps/basicLand.json')
  }
  
  function create()
  {
    const teste = [[0,1,2],[0,1,2],[0,1,2]]
    
    const map = this.make.tilemap(teste)
  
    map.addTilesetImage('terrainBasic','terrain', 32, 32)
    
    const layer = map.createLayer(0,'land', 0, 0)
  }
  </code></pre>
  <p>I don't know if it changes much but I was using react together with phaser 3, but my react code only had styling.</p>