Angular2 sample error after adding project to source control #1384

Closed
opened 2025-08-09 17:19:56 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @EduardTheThird on 9/15/2016

Hi

Great work thus far, the templates are excellent, thank you!

When generating a new Angular 2 sample via Yeoman, the project works perfectly in Visual Studio 2015.
Once the generated Angular 2 project is added to Git and a fresh branch thereof is checked out, the newly checked out branch does not build and gives the following error:

exception2
exception1

This is due to vendor.js being excluded by the generated .gitignore.
Running the following command manually before your first build after checkout: webpack --config webpack.config.vendor.js, fixes the issue. A similar issue was found on the React template, issue:99

Please could you recommend a workflow for this?

*Originally created by @EduardTheThird on 9/15/2016* Hi Great work thus far, the templates are excellent, thank you! When generating a new Angular 2 sample via Yeoman, the project works perfectly in Visual Studio 2015. Once the generated Angular 2 project is added to Git and a fresh branch thereof is checked out, the newly checked out branch does not build and gives the following error: ![exception2](https://cloud.githubusercontent.com/assets/6488837/18544535/5739d632-7b35-11e6-9e0d-6980d8144a92.PNG) ![exception1](https://cloud.githubusercontent.com/assets/6488837/18544536/591dbfa4-7b35-11e6-91c1-725e57bc7d4e.PNG) This is due to vendor.js being excluded by the generated .gitignore. Running the following command manually before your first build after checkout: `webpack --config webpack.config.vendor.js`, fixes the issue. A similar issue was found on the React template, [issue:99](https://github.com/aspnet/JavaScriptServices/issues/99) Please could you recommend a workflow for this?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1384
No description provided.