mgechev / mgechev/angular-seed

Problem with build.prod

Open
#2,442 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
4.5k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Hi,

Currently i'm working in a project with angular-seed, i'm trying to create a new module but when i execute build.prod it throws me an error.

'build.bundles.app' errored after 1.25 s
[08:52:32] Error on fetch for dist/tmp/productos/educacion/educacion.module.js at file:///C:/entorno/workspaces/conectado/front-cotizador-rentas/node_modules/dist/tmp/productos/educacion/educacion.module.js
Loading dist\tmp\app\app.module.js
Loading dist\tmp\app\main.js
Error: ENOENT: no such file or directory, open 'C:\entorno\workspaces\conectado\front-cotizador-rentas\node_modules\dist\tmp\productos\educacion\educacion.module.js'
at Error (native)
[08:52:32] 'build.prod' errored after 40 s
[08:52:32] Error in plugin 'run-sequence(build.bundles.app)'
Message:
Error on fetch for dist/tmp/productos/educacion/educacion.module.js at file:///C:/entorno/workspaces/conectado/front-cotizador-rentas/node_modules/dist/tmp/productos/educacion/educacion.module.js
Loading dist\tmp\app\app.module.js
Loading dist\tmp\app\main.js
ENOENT: no such file or directory, open 'C:\entorno\workspaces\conectado\front-cotizador-rentas\node_modules\dist\tmp\productos\educacion\educacion.module.js'
Details:
originalErr: Error: ENOENT: no such file or directory, open 'C:\entorno\workspaces\conectado\front-cotizador-rentas\node_modules\dist\tmp\productos\educacion\educacion.module.js'
Stack:
Error on fetch for dist/tmp/productos/educacion/educacion.module.js at file:///C:/entorno/workspaces/conectado/front-cotizador-rentas/node_modules/dist/tmp/productos/educacion/educacion.module.js
Loading dist\tmp\app\app.module.js
Loading dist\tmp\app\main.js
Error: ENOENT: no such file or directory, open 'C:\entorno\workspaces\conectado\front-cotizador-rentas\node_modules\dist\tmp\productos\educacion\educacion.module.js'
at Error (native)

I don´t know why it tries to get the file in node_modules if obviously it doesn't exist in that path.
Error on fetch for dist/tmp/productos/educacion/educacion.module.js at file:///C:/entorno/workspaces/conectado/front-cotizador-rentas/node_modules/dist/tmp/productos/educacion/educacion.module.js

educacion.module is a module created by me into de project so i don't understand why it seeking it in node_modules.

Thank you for helping me.

Kind regards

package.json
`{
"name": "angular-seed",
"version": "0.0.0",
"description": "Modular starter project for Angular 2 (and beyond) with statically typed build and AoT compilation",
"repository": {
"url": "https://github.com/mgechev/angular-seed"
},
"scripts": {
"build.dev": "gulp build.dev --color --env-config dev",
"build.dev.watch": "gulp build.dev.watch --color",
"build.e2e": "gulp build.e2e --color",
"build.prod": "gulp build.prod --color --env-config prod --build-type prod",
"build.prod.exp": "gulp build.prod.exp --color --env-config prod --build-type prod",
"build.test": "gulp build.test --color",
"test.watch": "gulp test.watch --color",
"generate.manifest": "gulp generate.manifest --color",
"e2e": "protractor",
"e2e.live": "protractor --elementExplorer",
"gulp": "gulp",
"i18n": "ng-xi18n && gulp clean.i18n",
"lint": "gulp tslint",
"karma": "karma",
"karma.start": "karma start",
"postinstall": "gulp check.versions && gulp build.bundle.rxjs && npm prune && gulp webdriver && gulp print.banner",
"reinstall": "npm cache clean && npm install",
"serve.coverage": "gulp serve.coverage --color",
"serve.dev": "gulp serve.dev --color --env-config dev",
"serve.e2e": "gulp serve.e2e --color",
"serve.prod": "gulp serve.prod --color --env-config prod",
"serve.prod.exp": "gulp serve.prod.exp --color --env-config prod",
"start": "gulp serve.dev --color",
"start.deving": "gulp start.deving --color",
"tasks.list": "gulp --tasks-simple --color",
"test": "gulp test --color",
"testcoverage": "gulp test --color && remap-istanbul -b src/ -i coverage/coverage-final.json -o coverage -t html",
"e2e.ci": "gulp build.prod --color && gulp build.js.e2e --color && gulp e2e --color",
"tests.all": "npm test && npm run e2e.ci",
"webdriver-start": "webdriver-manager start",
"webdriver-update": "webdriver-manager update",
"preinstall": "bower install"
},
"author": "Minko Gechev ",
"license": "MIT",
"devDependencies": {
"@angular/compiler-cli": "~2.1.2",
"@angular/platform-server": "~2.1.2",
"@angular/tsc-wrapped": "0.3.0",
"@types/async": "~2.0.32",
"@types/browser-sync": "~0.0.34",
"@types/core-js": "~0.9.34",
"@types/express": "4.0.33",
"@types/express-serve-static-core": "4.0.49",
"@types/gulp": "~3.8.32",
"@types/gulp-filter": "~3.0.29",
"@types/gulp-load-plugins": "~0.0.28",
"@types/gulp-protractor": "~1.0.29",
"@types/gulp-sass": "~0.0.29",
"@types/gulp-util": "~3.0.29",
"@types/jasmine": "2.5.35",
"@types/node": "~6.0.45",
"@types/protractor": "~1.5.20",
"@types/rimraf": "0.0.28",
"@types/run-sequence": "~0.0.28",
"@types/selenium-webdriver": "2.44.*",
"@types/systemjs": "~0.19.31",
"@types/yargs": "~0.0.34",
"@types/zone.js": "~0.0.27",
"@types/js-base64": "~2.1.4",
"@types/sinon": "~1.16.32",
"@types/google.analytics": "~0.0.33",
"async": "~2.1.1",
"autoprefixer": "~6.5.1",
"bower": "~1.7.9",
"browser-sync": "~2.17.3",
"codelyzer": "~1.0.0-beta.2",
"connect-history-api-fallback": "~1.3.0",
"cssnano": "~3.7.7",
"deep-extend": "~0.4.1",
"event-stream": "~3.3.4",
"express": "4.14.0",
"express-history-api-fallback": "2.0.0",
"gulp": "~3.9.1",
"gulp-cached": "~1.1.0",
"gulp-concat": "~2.6.0",
"gulp-concat-css": "~2.3.0",
"gulp-filter": "~4.0.0",
"gulp-inject": "~4.1.0",
"gulp-inline-ng2-template": "~3.0.1",
"gulp-load-plugins": "~1.3.0",
"gulp-plumber": "~1.1.0",
"gulp-postcss": "~6.2.0",
"gulp-progeny": "~0.3.1",
"gulp-protractor": "~3.0.0",
"gulp-replace": "~0.5.4",
"gulp-sass": "~2.3.2",
"gulp-sourcemaps": "2.2.0",
"gulp-template": "~4.0.0",
"gulp-tslint": "~6.1.2",
"gulp-typescript": "3.1.2",
"gulp-uglify": "2.0.0",
"gulp-util": "~3.0.7",
"gulp-vulcanize": "~6.1.0",
"gulp-watch": "~4.3.10",
"gulp-file": "~0.3.0",
"is-ci": "~1.0.9",
"isstream": "~0.1.2",
"jasmine-core": "~2.5.2",
"jasmine-sinon": "~0.4.0",
"jasmine-spec-reporter": "~2.7.0",
"karma": "~1.3.0",
"karma-chrome-launcher": "~2.0.0",
"karma-coverage": "~1.1.1",
"karma-jasmine": "~1.0.2",
"karma-jasmine-sinon": "~1.0.4",
"karma-junit-reporter": "~1.0.0",
"karma-mocha-reporter": "~2.2.0",
"karma-remap-istanbul": "0.6.0",
"karma-sinon": "~1.0.5",
"merge-stream": "~1.0.0",
"open": "0.0.5",
"protractor": "~4.0.9",
"remap-istanbul": "^0.10",
"rimraf": "~2.5.4",
"run-sequence": "~1.2.2",
"semver": "~5.3.0",
"serve-static": "~1.11.1",
"sinon": "~1.17.6",
"slash": "~1.0.0",
"supports-color": "~3.1.2",
"systemjs-builder": "0.15.33",
"tildify": "1.2.0",
"traceur": "0.0.111",
"ts-node": "1.7.0",
"tslint": "3.15.1",
"typescript": "2.0.8",
"walk": "2.3.9",
"yargs": "6.3.0"
},
"dependencies": {
"@angular/common": "~2.1.2",
"@angular/compiler": "~2.1.2",
"@angular/core": "~2.1.2",
"@angular/forms": "~2.1.2",
"@angular/http": "~2.1.2",
"@angular/platform-browser": "~2.1.2",
"@angular/platform-browser-dynamic": "~2.1.2",
"@angular/router": "~3.1.2",
"@vaadin/angular2-polymer": "1.0.0-beta4",
"angular2-cookie": "~1.2.5",
"buffer": "~5.0.0",
"core-js": "~2.4.1",
"git-repo-info": "^1.4.1",
"intl": "~1.2.5",
"js-base64": "~2.1.9",
"minimatch": "~3.0.3",
"numeral": "^2.0.4",
"reflect-metadata": "~0.1.8",
"rxjs": "5.0.0-beta.12",
"systemjs": "0.19.40",
"webcomponentsjs": "~1.0.2",
"zone.js": "0.6.25"
}
}`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the package.json build.prod script and the gulp build.bundles.app step mentioned in the error. Trace how dist/tmp/productos/educacion/educacion.module.js is resolved relative to node_modules, then reproduce the missing-file failure with the reported Angular module setup. Done means the cause of the incorrect path is identified and build.prod succeeds for the added module.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.