FountainJS / generator-fountain-webapp

Yeoman 'fountain' generator to start a webapp
http://fountainjs.io
MIT License
963 stars 67 forks source link

npm Build won't work #128

Open bingomanatee opened 8 years ago

bingomanatee commented 8 years ago

Prerequisites

Delete the above section and the instructions in the sections below before submitting

Description

If this is a feature request, explain why it should be added. Specific use-cases are best.

For bug reports, please provide as much relevant info as possible.

Error Message & Stack Trace

US9801A7AB1FD1:skylight-ui dedelhart$ npm run build

@ build /Users/dedelhart/Documents/repos/skylight-ui gulp

[11:45:38] Loading /Users/dedelhart/Documents/repos/skylight-ui/gulp_tasks/browsersync.js [11:45:38] Loading /Users/dedelhart/Documents/repos/skylight-ui/gulp_tasks/karma.js [11:45:38] Loading /Users/dedelhart/Documents/repos/skylight-ui/gulp_tasks/misc.js [11:45:38] Loading /Users/dedelhart/Documents/repos/skylight-ui/gulp_tasks/webpack.js [11:45:39] Using gulpfile ~/Documents/repos/skylight-ui/gulpfile.js [11:45:39] Starting 'default'... [11:45:39] Starting 'clean'... [11:45:39] Finished 'clean' after 5.04 ms [11:45:39] Starting 'build'... [11:45:39] Starting 'other'... [11:45:39] Starting 'webpack:dist'... [11:45:39] Finished 'other' after 82 ms [11:45:51] Time: 12203ms Asset Size Chunks Chunk Names vendor-7d3e44c923d8c4aeaea8.js 8 MB 0 vendor app-7d3e44c923d8c4aeaea8.js 268 kB 1 app

WARNING in ./~/ejs/lib/ejs.js require.extensions is not supported by webpack. Use a loader instead. @ ./~/fountain-generator/lib/test-utils.js 4:12-26 @ ./~/fountain-generator/index.js @ multi vendor

WARNING in ./~/ejs/lib/ejs.js require.extensions is not supported by webpack. Use a loader instead. @ ./~/fountain-generator/lib/test-utils.js 4:12-26 @ ./~/fountain-generator/index.js @ multi vendor

WARNING in ./~/spawn-sync/lib/spawn-sync.js Module not found: Error: Can't resolve 'try-thread-sleep' in '/Users/dedelhart/Documents/repos/skylight-ui/node_modules/spawn-sync/lib' @ ./~/spawn-sync/lib/spawn-sync.js 10:10-37 @ ./~/spawn-sync/index.js @ ./~/yeoman-generator/~/cross-spawn/index.js @ ./~/yeoman-generator/lib/actions/spawn_command.js @ ./~/yeoman-generator/lib/base.js @ ./~/yeoman-generator/lib/index.js @ ./~/fountain-generator/lib/Base.js @ ./~/fountain-generator/index.js @ multi vendor

WARNING in ./~/yeoman-generator/lib/base.js 628:20 Critical dependency: the request of a dependency is an expression

WARNING in ./~/yeoman-generator/lib/base.js 629:25 Critical dependency: the request of a dependency is an expression

WARNING in ./~/yeoman-environment/lib/environment.js 453:9 Critical dependency: the request of a dependency is an expression

WARNING in ./~/yeoman-environment/lib/store.js 40:22 Critical dependency: the request of a dependency is an expression

WARNING in ./~/sinon/lib/sinon.js 40:25 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

WARNING in ./~/yeoman-test/~/yeoman-generator/lib/base.js 620:20 Critical dependency: the request of a dependency is an expression

WARNING in ./~/yeoman-test/~/yeoman-generator/lib/base.js 621:25 Critical dependency: the request of a dependency is an expression

WARNING in ./~/cli-table/~/colors/lib/colors.js 127:29 Critical dependency: the request of a dependency is an expression

WARNING in app-7d3e44c923d8c4aeaea8.js from UglifyJs Side effects in initialization of unused variable $element [app-7d3e44c923d8c4aeaea8.js:9656,10] Dropping unreachable code [app-7d3e44c923d8c4aeaea8.js:20367,6] Dropping unused variable expression [app-7d3e44c923d8c4aeaea8.js:15451,40] Dropping unused function includes [app-7d3e44c923d8c4aeaea8.js:903,9] Dropping unused function nodesetLinkingFn [app-7d3e44c923d8c4aeaea8.js:10266,9] Dropping unused function directiveLinkingFn [app-7d3e44c923d8c4aeaea8.js:10273,9] Side effects in initialization of unused variable hello [app-7d3e44c923d8c4aeaea8.js:31892,4] Condition always true [app-7d3e44c923d8c4aeaea8.js:31944,4] Dropping unreachable code [app-7d3e44c923d8c4aeaea8.js:31946,6] Dropping unused function _toJson [app-7d3e44c923d8c4aeaea8.js:33010,10] Dropping unused function _fromJson [app-7d3e44c923d8c4aeaea8.js:33013,10] Dropping unused function promiseToString [app-7d3e44c923d8c4aeaea8.js:33016,10] Side effects in initialization of unused variable resolveContext [app-7d3e44c923d8c4aeaea8.js:33888,66] Dropping unused variable match [app-7d3e44c923d8c4aeaea8.js:36885,5] Dropping unused function $stateParamsFactory [app-7d3e44c923d8c4aeaea8.js:38560,10] Dropping unused variable $stateParams [app-7d3e44c923d8c4aeaea8.js:38663,5] Dropping unused variable $transitions [app-7d3e44c923d8c4aeaea8.js:38671,5] Dropping unused variable $transitionsProvider [app-7d3e44c923d8c4aeaea8.js:38679,5] Dropping unused variable $state [app-7d3e44c923d8c4aeaea8.js:38685,5] Dropping unused variable $stateProvider [app-7d3e44c923d8c4aeaea8.js:38691,5] Dropping unused variable $urlRouterProvider [app-7d3e44c923d8c4aeaea8.js:38697,5] Dropping unused variable $urlRouter [app-7d3e44c923d8c4aeaea8.js:38703,5] Dropping unused variable $urlMatcherFactory [app-7d3e44c923d8c4aeaea8.js:38712,5] Dropping unused variable $urlMatcherFactoryProvider [app-7d3e44c923d8c4aeaea8.js:38721,5]

ERROR in ./~/fountain-generator/lib/test-utils.js Module not found: Error: Can't resolve 'fs' in '/Users/dedelhart/Documents/repos/skylight-ui/node_modules/fountain-generator/lib' @ ./~/fountain-generator/lib/test-utils.js 8:15-28 @ ./~/fountain-generator/index.js @ multi vendor

ERROR in ./~/css-loader?minimize!./~/sass-loader!./~/postcss-loader!./src/index.scss Module build failed: Error: Missing binding /Users/dedelhart/Documents/repos/skylight-ui/node_modules/node-sass/vendor/darwin-x64-48/binding.node Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 6.x

Found bindings for the following environments:

COPY THE ERROR MESSAGE, INCLUDING STACK TRACE HERE

Config

Copy the content from .yo-rc.json:

{
  "generator-fountain-angular1": {
    "version": "0.7.2",
    "props": {
      "framework": "angular1",
      "modules": "webpack",
      "js": "babel",
      "ci": [],
      "css": "scss",
      "resolved": "/usr/local/lib/node_modules/generator-fountain-webapp/node_modules/generator-fountain-angular1/generators/app/index.js",
      "namespace": "fountain-angular1",
      "argv": {
        "remain": [],
        "cooked": [],
        "original": []
      },
      "sample": "hello",
      "router": "uirouter"
    }
  }
}

Relevant Links

https://github.com/bingomanatee/fountain-io

Environment

Tell us which operating system you are using, as well as which versions of Node.js, npm, and yo. Run the following to get it quickly:

node -e "var os=require('os');console.log('Node.js ' + process.version + '\n' + os.platform() + ' ' + os.release())"
yo --version 1.8.5
npm --version 3.10.3
micaelmbagira commented 8 years ago

@bingomanatee Is that still happening with the latest release ?