Closed neoblackcap closed 9 years ago
+1 same issue
Yeah I will fixes that
Fixed by v0.9.1
Today I created a new application and got the error on "server:dist":
vagrant@vagrant-ubuntu-trusty-64 ~/Projects/ng-ppa-ui $ npm list --depth=0 ppaUi@0.0.0 /home/vagrant/Projects/ng-ppa-ui ├── browser-sync@1.7.3 ├── chalk@0.5.1 ├── del@0.1.3 ├── gulp@3.8.10 ├── gulp-angular-filesort@1.0.4 ├── gulp-angular-templatecache@1.4.2 ├── gulp-autoprefixer@2.0.0 ├── gulp-coffee@2.2.0 ├── gulp-coffeelint@0.4.0 ├── gulp-consolidate@0.1.2 ├── gulp-csso@0.2.9 ├── gulp-filter@1.0.2 ├── gulp-flatten@0.0.4 ├── gulp-inject@1.0.2 ├── gulp-jshint@1.9.0 ├── gulp-karma@0.0.4 ├── gulp-load-plugins@0.7.1 ├── gulp-minify-html@0.1.8 ├── gulp-ng-annotate@0.3.6 ├── gulp-protractor@0.0.12 ├── gulp-rename@1.2.0 ├── gulp-replace@0.5.1 ├── gulp-rev@2.0.1 ├── gulp-rev-replace@0.3.1 ├── gulp-sass@1.1.0 ├── gulp-size@1.1.0 ├── gulp-uglify@1.0.2 ├── gulp-useref@1.0.2 ├── handlebars@2.0.0 ├── http-proxy@1.7.3 ├── jasmine-core@2.1.3 ├── jshint-stylish@1.0.0 ├── karma@0.12.31 ├── karma-jasmine@0.3.5 ├── karma-phantomjs-launcher@0.1.4 ├── lodash@2.4.1 ├── main-bower-files@2.4.2 ├── protractor@1.4.0 ├── require-dir@0.1.0 ├── uglify-save-license@0.4.1 └── wiredep@2.2.2
vagrant@vagrant-ubuntu-trusty-64 ~/Projects/ng-ppa-ui $
vagrant@vagrant-ubuntu-trusty-64 ~/Projects/ng-ppa-ui $ gulp serve:dist
[13:20:34] Using gulpfile ~/Projects/ng-ppa-ui/gulpfile.js
[13:20:34] Starting 'styles'...
[13:20:35] Starting 'scripts'...
[13:20:35] Starting 'markups'...
[13:20:35] Starting 'images'...
[13:20:35] Starting 'fonts'...
[13:20:35] Starting 'misc'...
[13:20:35] Finished 'markups' after 156 ms
[13:20:35] Starting 'partials'...
[13:20:36] 'partials' errored after 295 ms
[13:20:36] Error: Cannot find module 'lodash.bind'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.
[13:20:36] gulp-inject Nothing to inject into index.scss. [13:20:36] Finished 'misc' after 448 ms [13:20:36] Finished 'styles' after 1.38 s [13:20:36] Finished 'fonts' after 620 ms [13:20:36] all files 2.72 kB [13:20:36] Finished 'scripts' after 997 ms [13:20:36] Finished 'images' after 632 ms
Only works when I insert new depencies on package.json:
... "lodash._setbinddata": "^2.4.1", "lodash.bind": "^2.4.1", "lodash.identity": "^2.4.1", "lodash.support": "^2.4.1", ...
Can't find lodash when I run the generator, the generator version is v0.9.0. But the v0.8.1 is alright. the exception was raised in app/src/utils.js, in line 4. Add lodash into generator-gulp-angular's package.json file fix problem.