Giter Club home page Giter Club logo

Comments (7)

CKGrafico avatar CKGrafico commented on May 15, 2024 1

I've tried with empty config and have the same error but let me share my config.
When I debug if I change to Phaser.CANVAS this line still assumes CONST.AUTO

    const config = {
      type: Phaser.AUTO,
      scale: {
        mode: Phaser.Scale.FIT,
        parent: 'game',
        autoCenter: Phaser.Scale.CENTER_BOTH,
        width: '100%',
        height: '100%'
      },
      pixelArt: true,
      render: {
        antialias: false,
        pixelArt: true,
        roundPixels: true
      },
      physics: {
        default: 'arcade',
        arcade: {
          gravity: { y: 400 }
          // debug: true
        }
      },
      scene
    };

from ion-phaser.

CKGrafico avatar CKGrafico commented on May 15, 2024 1

3.22

"dependencies": {
"@datorama/akita": "^4.19.2",
"@ion-phaser/react": "^1.2.1",
"bootstrap": "^4.4.1",
"i18next": "^19.1.0",
"inversify-hooks": "^2.0.0-alpha3",
"node-sass": "^4.13.1",
"normalize-scss": "^7.0.1",
"open-simplex-noise": "^2.2.0",
"phaser": "^3.22.0",
"react": "^16.12.0",
"react-bootstrap": "^1.0.0-beta.16",
"react-dom": "^16.12.0",
"react-i18next": "^11.3.2",
"react-transition-group": "^4.3.0",
"reflect-metadata": "^0.1.13",
"svgo": "1.3.2"
},

from ion-phaser.

jdnichollsc avatar jdnichollsc commented on May 15, 2024 1

Ok, I updated the packages and your configuration is working in the demo project also with types => https://github.com/proyecto26/ion-phaser/blob/master/demo-react/src/App.tsx#L31

from ion-phaser.

CKGrafico avatar CKGrafico commented on May 15, 2024 1

After update I have this error:

index.js:1 TypeError: Cannot read property 'hasOwnProperty' of null
    at GetValue (ion-phaser.entry.js:3945)
  else if (key.indexOf('.') !== -1) {
        var keys = key.split('.');
        var parent = source;
        var value = defaultValue;
        //  Use for loop here so we can break early
        for (var i = 0; i < keys.length; i++) {
            if (parent.hasOwnProperty(keys[i])) {
                //  Yes it has a key property, let's carry on down
                value = parent[keys[i]];
                parent = parent[keys[i]];
            }
            else {
                //  Can't go any further, so reset to default
                value = defaultValue;
                break;
            }
        }

from ion-phaser.

jdnichollsc avatar jdnichollsc commented on May 15, 2024

Please share the config of your game :)

from ion-phaser.

jdnichollsc avatar jdnichollsc commented on May 15, 2024

what version of Phaser are you using? thanks!

from ion-phaser.

jdnichollsc avatar jdnichollsc commented on May 15, 2024

Please attach a demo to be able to reproduce that issue

from ion-phaser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.