rblopes / generator-phaser-plus

[🛑 DISCONTINUED] It has been a long journey but development of `generator-phaser-plus` is now over. I recommend you have a look and fork `yandeu/phaser-project-template` instead.
https://github.com/yandeu/phaser-project-template
MIT License
144 stars 14 forks source link

Error running Gulp messages around babel #9

Closed budda closed 8 years ago

budda commented 8 years ago

Everytime i run npm start I always see a block of gulp script errors for babel.

Congrats! Now, launch your project with
npm start and happy hacking :)

$ npm start

> @ start /Users/mike/Code/blox
> gulp default

[20:43:13] Using gulpfile ~/Code/blox/gulpfile.js
[20:43:13] Starting 'dev:lint'...
[20:43:13] Starting 'dev:watch'...
[20:43:13] Finished 'dev:watch' after 14 ms
[20:43:14] Finished 'dev:lint' after 770 ms
[20:43:14] Starting 'dev:scripts'...
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/core-js/object/keys' from '/Users/mike/Code/blox/src'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/classCallCheck' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/createClass' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/possibleConstructorReturn' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/inherits' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/classCallCheck' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/createClass' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/possibleConstructorReturn' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/inherits' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/classCallCheck' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/createClass' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/possibleConstructorReturn' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/inherits' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/classCallCheck' from '/Users/mike/Code/blox/src/app/objects'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/possibleConstructorReturn' from '/Users/mike/Code/blox/src/app/objects'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/helpers/inherits' from '/Users/mike/Code/blox/src/app/objects'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/core-js/object/get-prototype-of' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/core-js/object/get-prototype-of' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/core-js/object/get-prototype-of' from '/Users/mike/Code/blox/src/app/states'
[20:43:21] gulp-notify: [Error running Gulp] Cannot find module 'babel-runtime/core-js/object/get-prototype-of' from '/Users/mike/Code/blox/src/app/objects'
[20:43:21] Finished 'dev:scripts' after 7.17 s
[20:43:21] Starting 'dev:server'...
[20:43:21] Finished 'dev:server' after 91 ms
[20:43:21] Starting 'dev'...
[20:43:21] Finished 'dev' after 6.79 Ξs
[20:43:21] Starting 'default'...
[20:43:21] Finished 'default' after 9.41 Ξs
[BS] Access URLs:
 ------------------------------------
       Local: http://localhost:3000
    External: http://10.10.1.109:3000
 ------------------------------------
          UI: http://localhost:3001
 UI External: http://10.10.1.109:3001
 ------------------------------------
[BS] Serving files from: static
[BS] Serving files from: build

During the initial npm install the babel modules were all listed without any errors as being installed:

babel-polyfill@6.3.14 node_modules/babel-polyfill
├── babel-regenerator-runtime@6.3.13
├── babel-runtime@5.8.34
└── core-js@1.2.6

babel-plugin-transform-runtime@6.3.13 node_modules/babel-plugin-transform-runtime
└── babel-runtime@5.8.34 (core-js@1.2.6)

babelify@7.2.0 node_modules/babelify
└── babel-core@6.3.17 (slash@1.0.0, shebang-regex@1.0.0, path-is-absolute@1.0.0, path-exists@1.0.0, babel-template@6.3.13, babel-messages@6.3.13, private@0.1.6, babel-helpers@6.3.13, convert-source-map@1.1.2, debug@2.2.0, minimatch@2.0.10, babel-types@6.3.17, babel-code-frame@6.3.13, babylon@6.3.15, babel-generator@6.3.17, babel-traverse@6.3.17, json5@0.4.0, source-map@0.5.3, lodash@3.10.1, babel-register@6.3.13, babel-runtime@5.8.34)

babel-preset-es2015@6.3.13 node_modules/babel-preset-es2015
├── babel-plugin-transform-es2015-literals@6.3.13 (babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-block-scoped-functions@6.3.13 (babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-typeof-symbol@6.3.13 (babel-runtime@5.8.34)
├── babel-plugin-check-es2015-constants@6.3.13 (babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-arrow-functions@6.3.13 (babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-template-literals@6.3.13 (babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-spread@6.3.14 (babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-for-of@6.3.13 (babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-destructuring@6.3.15 (babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-unicode-regex@6.3.13 (regexpu@1.3.0, babel-helper-regex@6.3.13, babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-object-super@6.3.13 (babel-helper-replace-supers@6.3.13, babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-computed-properties@6.3.13 (babel-helper-define-map@6.3.13, babel-template@6.3.13, babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-function-name@6.3.13 (babel-types@6.3.17, babel-helper-function-name@6.3.15, babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-sticky-regex@6.3.13 (babel-helper-regex@6.3.13, babel-types@6.3.17, babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-shorthand-properties@6.3.13 (babel-types@6.3.17, babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-modules-commonjs@6.3.16 (babel-plugin-transform-strict-mode@6.3.13, babel-template@6.3.13, babel-types@6.3.17, babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-classes@6.3.15 (babel-helper-optimise-call-expression@6.3.13, babel-messages@6.3.13, babel-helper-replace-supers@6.3.13, babel-helper-function-name@6.3.15, babel-helper-define-map@6.3.13, babel-template@6.3.13, babel-types@6.3.17, babel-traverse@6.3.17, babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-parameters@6.3.13 (babel-helper-get-function-arity@6.3.13, babel-helper-call-delegate@6.3.13, babel-template@6.3.13, babel-types@6.3.17, babel-traverse@6.3.17, babel-runtime@5.8.34)
├── babel-plugin-transform-es2015-block-scoping@6.3.13 (babel-types@6.3.17, babel-template@6.3.13, babel-traverse@6.3.17, lodash@3.10.1, babel-runtime@5.8.34)
└── babel-plugin-transform-regenerator@6.3.13 (babel-plugin-syntax-async-functions@6.3.13, private@0.1.6, babylon@6.3.15, babel-types@6.3.17, babel-traverse@6.3.17, babel-core@6.3.17, babel-runtime@5.8.34)
rblopes commented 8 years ago

Hi @budda. Thanks again for reporting.

Try installing babel-runtime as a dev dependency. I haven't noticed this issue before, sorry. Been using version 3 of npm for quite a while now, I forgot to test the sample game project under npm v2. I'll post a new version with the fix later.

budda commented 8 years ago
$ npm install babel-runtime
babel-runtime@6.3.13 node_modules/babel-runtime
└── core-js@1.2.6

That fixed the problem on a manual work around basis. Thanks!

rblopes commented 8 years ago

A new version (v0.1.2) including the fix was published on npm now. babel-runtime should be included on all projects from now on.