GithubHelp home page GithubHelp logo

Comments (6)

rroylance avatar rroylance commented on May 19, 2024

Hi, sorry you're having an issue.

I'm going to assume it's due to some incompatibility between at least one of the modules/plugins and node 6.9.5, I developed with 7.5.0 and after downgrading to 6.9.5 I see the same issue...

I'll can take a look tonight and see what I can do.

from phaser-ce-npm-webpack-typescript-starter-project.

chocopoule avatar chocopoule commented on May 19, 2024

Thanks,

I have been browsing the web for similar issues but I didn't find anything ...
My guess was something around file-loader ...

from phaser-ce-npm-webpack-typescript-starter-project.

ProfitWarning avatar ProfitWarning commented on May 19, 2024

This will load assets
{ test: /\.(jpg|png|xml|mp3|ogg|m4a|fnt|ac3)$/, loader: 'file-loader?name=assets/[hash].[ext]' },

but example breaks with:
ncaught TypeError: url.match is not a function at Phaser.Loader.transformUrl (game.js:72307) at Phaser.Loader.fileComplete (game.js:72934) at HTMLImageElement.file.data.onload (game.js:72452)

from phaser-ce-npm-webpack-typescript-starter-project.

ProfitWarning avatar ProfitWarning commented on May 19, 2024

It's a Windows thing.
change the file-loader test from /assets\//
to /assets\\/ if you're on a windows box.

Now it works.

from phaser-ce-npm-webpack-typescript-starter-project.

rroylance avatar rroylance commented on May 19, 2024

Awesome. Thanks @ProfitWarning and @lejeremy. I haven't had a chance to look at it the last couple days like I thought. I guess Node 7 normalizes path slashes while Node 6 doesn't? I'll get that change in, either way.

from phaser-ce-npm-webpack-typescript-starter-project.

chocopoule avatar chocopoule commented on May 19, 2024

Now working like a charm. Thank you guys !

from phaser-ce-npm-webpack-typescript-starter-project.

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.