Uncaught SyntaxError: Unexpected token < #159

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

Originally created by @k11k2 on 2/21/2018

Using new angular 5 template as it was angular-cli standard. I want to render components from views/cshtml.

Added required .js files in layout.cshtml under the <app-root></app-root> as follows

<script type="text/javascript" src="inline.bundle.js"></script>
<script type="text/javascript" src="polyfills.bundle.js"></script>
<script type="text/javascript" src="styles.bundle.js"></script>
<script type="text/javascript" src="vendor.bundle.js"></script>
<script type="text/javascript" src="main.bundle.js"></script>

It runs cool in locally but After deployment the bundles will generated with unique names as main.bundle.b7122ae25d71.js so it unable to find the exact bundles for loading angular application. how do I get this achieve by referring exact bundles or any other way cause I need to carry some values from back end to front end so I prefer this process more.

*Originally created by @k11k2 on 2/21/2018* Using new angular 5 template as it was angular-cli standard. I want to render components from views/cshtml. Added required .js files in layout.cshtml under the `<app-root></app-root>` as follows ``` <script type="text/javascript" src="inline.bundle.js"></script> <script type="text/javascript" src="polyfills.bundle.js"></script> <script type="text/javascript" src="styles.bundle.js"></script> <script type="text/javascript" src="vendor.bundle.js"></script> <script type="text/javascript" src="main.bundle.js"></script> ``` It runs cool in locally but After deployment the bundles will generated with unique names as `main.bundle.b7122ae25d71.js` so it unable to find the exact bundles for loading angular application. how do I get this achieve by referring exact bundles or any other way cause I need to carry some values from back end to front end so I prefer this process more.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#159
No description provided.