Sergey Gornostaev Posted March 6, 2018 Share Posted March 6, 2018 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 More sharing options...
VincentB Posted March 6, 2018 Share Posted March 6, 2018 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 :-) Sergey Gornostaev 1 Link to comment Share on other sites More sharing options...
Sergey Gornostaev Posted March 6, 2018 Author Share Posted March 6, 2018 Thank you, Vincent. It helped me Link to comment Share on other sites More sharing options...
Recommended Posts