You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since you installed parcel with -g flag, i had to add it manually into project, so
npm init
npm install
npm install parcel-bundler --save-dev
npm start, i get warnings and errors in browser's console:
`phaser.js:74289 generateFrameNames: Frame missing: run-down-1.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-2.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-3.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-4.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-5.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-6.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-7.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-8.png from texture: faune
generateFrameNames @ phaser.js:74289
createCharacterAnims @ CharacterAnims.ts:21
phaser.js:74289 generateFrameNames: Frame missing: run-up-1.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-2.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-3.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-4.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-5.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-6.png from texture: faune
[MANY MORE WARNINGS HERE]
[AND AT THE END, FOLLOWING WARNING:]
phaser.js:135325 createStaticLayer is deprecated. Use createLayer
[AND FOLLOWING ERROR:]
phaser.js:43946 Uncaught TypeError: Cannot read properties of undefined (reading 'texture')
at AnimationState.setCurrentFrame (phaser.js:43946)
at AnimationState.handleStart (phaser.js:43412)
at AnimationState.startAnimation (phaser.js:43392)
at AnimationState.play (phaser.js:43266)
at new Faune (Faune.ts:44)
at GameObjectFactory.faune (Faune.ts:243)
at Game.create (Game.ts:54)
at SceneManager.create (phaser.js:100338)
at SceneManager.bootScene (phaser.js:100218)
at SceneManager.start (phaser.js:100926)`
Game.ts shows errors in VSCode (Line 47): map.createStaticLayer('Ground', tileset)
The error is on 'createStaticLayer': "Property 'createStaticLayer' does not exist on type 'Tilemap'.ts(2339)"
package.json phaser version: "dependencies": { "phaser": "^3.22.0" },
is the same as what you're using, so why can't it recognize that method? Did you by chance upgrade without testing?
when i change 'createStaticLayer' to 'createLayer', i get the same warnings (except the last one), and following error: phaser.js:43946 Uncaught TypeError: Cannot read properties of undefined (reading 'texture')
I suppose the parcel package didn't properly locate the files in the filesystem (i see you using the static files copy 'public' and cleanpaths plugin, i suppose the former fails to locate the files). Can you recheck and fix your repo? (or update your tldr installation guide).
Cheers hope this helps.
The text was updated successfully, but these errors were encountered:
Hi, trying to make your project work - no bueno:
since you installed parcel with -g flag, i had to add it manually into project, so
npm init
npm install
npm install parcel-bundler --save-dev
npm start, i get warnings and errors in browser's console:
`phaser.js:74289 generateFrameNames: Frame missing: run-down-1.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-2.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-3.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-4.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-5.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-6.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-7.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-down-8.png from texture: faune
generateFrameNames @ phaser.js:74289
createCharacterAnims @ CharacterAnims.ts:21
phaser.js:74289 generateFrameNames: Frame missing: run-up-1.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-2.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-3.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-4.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-5.png from texture: faune
phaser.js:74289 generateFrameNames: Frame missing: run-up-6.png from texture: faune
[MANY MORE WARNINGS HERE]
[AND AT THE END, FOLLOWING WARNING:]
phaser.js:135325 createStaticLayer is deprecated. Use createLayer
[AND FOLLOWING ERROR:]
phaser.js:43946 Uncaught TypeError: Cannot read properties of undefined (reading 'texture')
at AnimationState.setCurrentFrame (phaser.js:43946)
at AnimationState.handleStart (phaser.js:43412)
at AnimationState.startAnimation (phaser.js:43392)
at AnimationState.play (phaser.js:43266)
at new Faune (Faune.ts:44)
at GameObjectFactory.faune (Faune.ts:243)
at Game.create (Game.ts:54)
at SceneManager.create (phaser.js:100338)
at SceneManager.bootScene (phaser.js:100218)
at SceneManager.start (phaser.js:100926)`
Game.ts shows errors in VSCode (Line 47):
map.createStaticLayer('Ground', tileset)
The error is on 'createStaticLayer': "Property 'createStaticLayer' does not exist on type 'Tilemap'.ts(2339)"
package.json phaser version:
"dependencies": { "phaser": "^3.22.0" },
is the same as what you're using, so why can't it recognize that method? Did you by chance upgrade without testing?
when i change 'createStaticLayer' to 'createLayer', i get the same warnings (except the last one), and following error:
phaser.js:43946 Uncaught TypeError: Cannot read properties of undefined (reading 'texture')
I suppose the parcel package didn't properly locate the files in the filesystem (i see you using the static files copy 'public' and cleanpaths plugin, i suppose the former fails to locate the files). Can you recheck and fix your repo? (or update your tldr installation guide).
Cheers hope this helps.
The text was updated successfully, but these errors were encountered: