Jump to content

Problem with Phaser 3 as package


Sergey Gornostaev
 Share

Recommended Posts

I build my game through webpack and want import phaser as npm package. But I have problem with that. When I'm trying to build it I see a lot of errors, like, Module parse failed: Unexpected character '#' (1:0), etc.

Did you ever heard about someone has had similar problems or someone knows how to solve this problem?

I use webpack3, yarn and Mac Book to build my project.

Link to comment
Share on other sites

Hi Sergey,

Some issues were reported here https://github.com/photonstorm/phaser/issues/3206 and there https://github.com/photonstorm/phaser/issues/3202 related to the build with webpack.

A discussion is ongoing in this topic about creating a common boiler plate

 

I had the same experience as you, what I did is use the following simple boiler plate https://github.com/photonstorm/phaser3-project-template. I updated the webpack version to latest, added webpack-cli and that's all, it worked.

Good luck :-)

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...