Jump to content

Phaser 3 Build Failing - Copy-to-Examples failed: Phaser 3 Examples not present at ../phaser3-examples


shibamiko
 Share

Recommended Posts

Trying to initiate the build on my Phaser 3 game,  so I can serve it on github pages.

Webpack is installed. package.json looks like this:

"name": "phaser",
  "version": "3.12.0-beta3",
  "release": "Silica",
  "description": "A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.",
  "author": "Richard Davey <[email protected]> (http://www.photonstorm.com)",
  "logo": "https://raw.github.com/photonstorm/phaser/master/phaser-logo-small.png",
  "homepage": "./",
  "bugs": "https://github.com/photonstorm/phaser/issues",
  "license": "MIT",
  "licenseUrl": "http://www.opensource.org/licenses/mit-license.php",
  "main": "./src/phaser.js",
  "repository": {
    "type": "git",
    "url": "https://[email protected]/photonstorm/phaser.git"
  },
  "scripts": {
    "help": "node scripts/help.js",
    "build": "webpack",
    "watch": "webpack --watch",
    "dist": "webpack --config webpack.dist.config.js",
    "lint": "eslint --config .eslintrc.json \"src/**/*.js\"",
    "lintfix": "eslint --config .eslintrc.json \"src/**/*.js\" --fix",
    "sloc": "node-sloc \"./src\" --include-extensions \"js\"",
    "bundleshaders": "node scripts/bundle-shaders.js",
    "postinstall": "node scripts/support.js",
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build"

...

Everytime I run npm run build, I get this error --> Copy-to-Examples failed: Phaser 3 Examples not present at ../phaser3-examples.

I searched my whole repo, there's no /phaser3-examples folder. Not sure what I need to do in order to bypass this error.

Any help is appreciated, thanks all!

Cecille

Link to comment
Share on other sites

It's just a warning, it will still build.

All it does is copy the build files into the phaser3 examples folder so fast testing. You can edit it out of the webpack config easily enough if you like. Or clone the examples repo locally. Either would stop the warning.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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