You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I called ng build --prod. In dev environment it works fine.
The log given by the failure.
WARNING in ./src/$$_gendir/app/app.module.ngfactory.ts
959:29-46 "export 'version' (imported as 'import200') was not found in '../../environments/environment'
ERROR in ./~/angular2-logger/app/core/logger.ts
Module build failed: TypeError: Cannot read property 'text' of undefined
at Object.getTokenPosOfNode (C:\…\node_modules\typescript\lib\typescript.js:5692:71)
at IdentifierObject.TokenOrIdentifierObject.getStart (C:\…\node_modules\typescript\lib\typescript.js:53623:23)
at IdentifierObject.TokenOrIdentifierObject.getText (C:\…\node_modules\typescript\lib\typescript.js:53644:77)
at refactor.findAstNodes.filter (C:\…\node_modules\@ngtools\webpack\src\loader.js:135:44)
at Array.filter (native)
at refactor.findAstNodes.forEach.node (C:\…\node_modules\@ngtools\webpack\src\loader.js:134:14)
at Array.forEach (native)
at _removeDecorators (C:\…\node_modules\@ngtools\webpack\src\loader.js:125:10)
at Promise.resolve.then (C:\…\node_modules\@ngtools\webpack\src\loader.js:295:33)
@ ./~/angular2-logger/core.js 6:9-37
@ ./src/$$_gendir/app/app.module.ngfactory.ts
@ ./src/main.ts
@ multi ./src/main.ts
Mention any other details that might be useful.
It could be interesting to note that my environment files have an additional property called "version", and I refer to the dev environment explicitely in angular-cli.json.
// environment.dev.tsconstversion=require('./deploy.json').version;exportconstenvironment={production: false,
version
};
// environment.prod.tsconstversion=require('./deploy.json').version;exportconstenvironment={production: true,
version
};
OS?
Window 10
Versions.
Repro steps.
I called
ng build --prod
. In dev environment it works fine.The log given by the failure.
Mention any other details that might be useful.
It could be interesting to note that my environment files have an additional property called "version", and I refer to the dev environment explicitely in
angular-cli.json
.The text was updated successfully, but these errors were encountered: