Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upMaking changes to template breaks app #1457
Comments
|
Thanks, I will work on this issue today. |
|
I cannot reproduce your issue. Would you take a look at your tools directory and verify if you haven't compiled the typescript files? |
|
Thats strange! Just tried on another computer right now with the same result.
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9zaGFyZWQvY29uZmlnL2Vudi5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQU9hLGNBQU0sR0FBYyxJQUFJLENBQUMsS0FBSyxDQUFDLG1CQUFtQixDQUFDLENBQUMiLCJmaWxlIjoiYXBwL3NoYXJlZC9jb25maWcvZW52LmNvbmZpZy5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8vIEZlZWwgZnJlZSB0byBleHRlbmQgdGhpcyBpbnRlcmZhY2VcclxuLy8gZGVwZW5kaW5nIG9uIHlvdXIgYXBwIHNwZWNpZmljIGNvbmZpZy5cclxuZXhwb3J0IGludGVyZmFjZSBFbnZDb25maWcge1xyXG4gIEFQST86IHN0cmluZztcclxuICBFTlY/OiBzdHJpbmc7XHJcbn1cclxuXHJcbmV4cG9ydCBjb25zdCBDb25maWc6IEVudkNvbmZpZyA9IEpTT04ucGFyc2UoJzwlPSBFTlZfQ09ORklHICU+Jyk7XHJcblxyXG4iXX0=` I have a feeling that the env.config.js is copied to output directory even though it has not changed. Using: Help or input is much appreciated :) Can I debug it some how? |
|
I'm seeing the same issue. Running npm start works fine, however after a rebuild because of a change all of the HTML files are blown away in the dist/dev folder. I can't figure out what is causing it because it looks like it goes through the exact same process as when you first run npm start. FYI - everything seems to work fine when running in start.deving mode except my laptop sounds like a Harley Davidson. |
|
Ok, first of all, you don't run tsc directly... There is a gulp script to do lots of things when building the seed. $ git clone --depth 1 https://githib.com/mgechev/angular-seed
$ cd angular-seed
$ npm install
$ npm startThe Then you can edit the components, etc... Mine worked Using: |


I'm running the latest version (hopfully after upgrade) of seed. When I do a change in eg. home.component.html and after the live reload the app is broken with this error message:
Steps to reproduce:
Current behaviour
If I look into the file "dist/dev/app/shared/config/env.config.js" this is what is displayed:
"use strict"; exports.Config = JSON.parse('<%= ENV_CONFIG %>'); //# sourceMappingURL=env.config.js.mapExpected:
Expected content in env.config.js:
"use strict"; exports.Config = JSON.parse('{"API":"https://demo.com","APP_BASE":"/web/","ENV":"DEV"}');Other info:
If I trigger a typescript file change then the json is evaluated and the problem is fixed.
UPDATE
I just tried this on a new clone and I can reproduce this issue. Just run the app and change something in home.component.html