excaliburjs / sample-platformer

Sample Platformer built in Excalibur

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JS error on browser when running `npm run dev`

apaatsio opened this issue · comments

I get a JS error when running the dev server.

Uncaught TypeError: this.path.indexOf is not a function
    at e.load (excalibur.min.js:8)
    at t (excalibur.min.js:8)
    at e.load (excalibur.min.js:8)
    at e.load (excalibur.min.js:8)
    at e.start (excalibur.min.js:8)
    at Object../src/main.ts (main.ts:32)
    at __webpack_require__ (bootstrap:19)
    at Object.0 (resources.ts:33)
    at __webpack_require__ (bootstrap:19)
    at bootstrap:83

Steps to reproduce

  1. Run npm run dev
  2. Open the page localhost:8080
  3. Observe the console

Workaround

I checked with git bisect and the problem seems to be introduced by commit 8cc2fac.

Downgrading file-loader 6.1.0 to 4.3.0 gets rid of the issue.

Versions

  • sample-platformer be1505f
  • Excalibur 0.24.5
  • file-loader 6.1.0
  • Chrome 85
  • node 12.18.3