Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

fresh install cannot build #217

Open
MortenHofft opened this issue Dec 4, 2017 · 0 comments
Open

fresh install cannot build #217

MortenHofft opened this issue Dec 4, 2017 · 0 comments

Comments

@MortenHofft
Copy link

MortenHofft commented Dec 4, 2017

Description

First: thank you for a nice generator. it suited my needs well. But i got into issues trying to build a prod version
I just did a fresh install and build doesn't work. npm run serve works just fine.
Config: Angular, Npm, Stylus, Pure old javascript, UI router, Jenkins
Using the Todo app

similar issues, but seemed to have different error messages:

Error Message & Stack Trace


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
 @ ./~/generator-fountain-webapp/generators/app/index.js
 @ ./~/generator-fountain-webapp/index.js
 @ multi generator-fountain-webapp yo angular angular-ui-router

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
 @ ./~/generator-fountain-webapp/generators/app/index.js
 @ ./~/generator-fountain-webapp/index.js
 @ multi generator-fountain-webapp yo angular angular-ui-router

WARNING in ./~/spawn-sync/lib/spawn-sync.js
Module not found: Error: Can't resolve 'try-thread-sleep' in '/Users/mortenhofft/Documents/dev/delete/node_modules/spawn-sync/lib'
 @ ./~/spawn-sync/lib/spawn-sync.js 10:10-37
 @ ./~/spawn-sync/index.js
 @ ./~/cross-spawn/index.js
 @ ./~/yeoman-generator/lib/actions/spawn-command.js
 @ ./~/yeoman-generator/lib/index.js
 @ ./~/fountain-generator/lib/Base.js
 @ ./~/fountain-generator/index.js
 @ ./~/generator-fountain-webapp/generators/app/index.js
 @ ./~/generator-fountain-webapp/index.js
 @ multi generator-fountain-webapp yo angular angular-ui-router

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

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

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

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

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

ERROR in multi generator-fountain-webapp yo angular angular-ui-router
Module not found: Error: Can't resolve 'yo' in '/Users/mortenhofft/Documents/dev/delete'
 @ multi generator-fountain-webapp yo angular angular-ui-router

ERROR in ./~/fountain-generator/lib/test-utils.js
Module not found: Error: Can't resolve 'fs' in '/Users/mortenhofft/Documents/dev/delete/node_modules/fountain-generator/lib'
 @ ./~/fountain-generator/lib/test-utils.js 8:15-28
 @ ./~/fountain-generator/index.js
 @ ./~/generator-fountain-webapp/generators/app/index.js
 @ ./~/generator-fountain-webapp/index.js
 @ multi generator-fountain-webapp yo angular angular-ui-router

ERROR in ./~/ejs/lib/ejs.js
Module not found: Error: Can't resolve 'fs' in '/Users/mortenhofft/Documents/dev/delete/node_modules/ejs/lib'
 @ ./~/ejs/lib/ejs.js 47:9-22
 @ ./~/fountain-generator/lib/test-utils.js
 @ ./~/fountain-generator/index.js
 @ ./~/generator-fountain-webapp/generators/app/index.js
 @ ./~/generator-fountain-webapp/index.js
 @ multi generator-fountain-webapp yo angular angular-ui-router

ERROR in ./~/mem-fs-editor/lib/actions/copy.js
Module not found: Error: Can't resolve 'fs' in '/Users/mortenhofft/Documents/dev/delete/node_modules/mem-fs-editor/lib/actions'
 @ ./~/mem-fs-editor/lib/actions/copy.js 4:9-22
 @ ./~/mem-fs-editor/lib/index.js
 @ ./~/fountain-generator/lib/test-utils.js
 @ ./~/fountain-generator/index.js
 @ ./~/generator-fountain-webapp/generators/app/index.js
 @ ./~/generator-fountain-webapp/index.js
 @ multi generator-fountain-webapp yo angular angular-ui-router

ERROR in ./~/mem-fs-editor/lib/actions/commit.js
Module not found: Error: Can't resolve 'fs' in '/Users/mortenhofft/Documents/dev/delete/node_modules/mem-fs-editor/lib/actions'
 @ ./~/mem-fs-editor/lib/actions/commit.js 3:9-22
 @ ./~/mem-fs-editor/lib/index.js
 @ ./~/fountain-generator/lib/test-utils.js
 @ ./~/fountain-generator/index.js
 @ ./~/generator-fountain-webapp/generators/app/index.js
 @ ./~/generator-fountain-webapp/index.js
 @ multi generator-fountain-webapp yo angular angular-ui-router

ERROR in ./~/mem-fs-editor/lib/util.js
Module not found: Error: Can't resolve 'fs' in '/Users/mortenhofft/Documents/dev/delete/node_modules/mem-fs-editor/lib'
 @ ./~/mem-fs-editor/lib/util.js 3:9-22
 @ ./~/mem-fs-editor/lib/actions/delete.js
 @ ./~/mem-fs-editor/lib/index.js
 @ ./~/fountain-generator/lib/test-utils.js
 @ ./~/fountain-generator/index.js
 @ ./~/generator-fountain-webapp/generators/app/index.js
 @ ./~/generator-fountain-webapp/index.js
 @ multi generator-fountain-webapp yo angular angular-ui-router

ERROR in ./~/yeoman-generator/lib/util/conflicter.js
Module not found: Error: Can't resolve 'fs' in '/Users/mortenhofft/Documents/dev/delete/node_modules/yeoman-generator/lib/util'
 @ ./~/yeoman-generator/lib/util/conflicter.js 2:9-22
 @ ./~/yeoman-generator/lib/index.js
 @ ./~/fountain-generator/lib/Base.js
 @ ./~/fountain-generator/index.js
 @ ./~/generator-fountain-webapp/generators/app/index.js
 @ ./~/generator-fountain-webapp/index.js
 @ multi generator-fountain-webapp yo angular angular-ui-router

... and it continues. Can't resolve 'fs' in ...  seems to be the recurring one

Environment

The only thing unusual is that i haven't got yo and the generator installed globally but in the folder. I haven't experienced that as being a problem before with other generators though.

generator version 1.0.0
Node.js v6.12.0
darwin 15.6.0
npm 3.10.10
yo 2.0.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant