Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404s regarding js bundles #4

Open
bcanvural opened this issue May 11, 2020 · 2 comments
Open

404s regarding js bundles #4

bcanvural opened this issue May 11, 2020 · 2 comments

Comments

@bcanvural
Copy link

Hi,

I saw that the following scripts give 404 when hit on site:

<@hst.link var="inlinejs" path="/js/angular/inline.bundle.js" />

<script type="text/javascript" src="${inlinejs}"></script>

<@hst.link var="polyfillsjs" path="/js/angular/polyfills.bundle.js" />

<script type="text/javascript" src="${polyfillsjs}"></script>

<@hst.link var="vendorjs" path="/js/angular/vendor.bundle.js" />

<script type="text/javascript" src="${vendorjs}"></script>

<@hst.link var="stylesjs" path="/js/angular/styles.bundle.js" />

<script type="text/javascript" src="${stylesjs}"></script>

<@hst.link var="mainjs" path="/js/angular/main.bundle.js" />

<script type="text/javascript" src="${mainjs}"></script>

I don't see these js files in the project, maybe forgotton? or perhaps the webfile module's size limit prevented the webfile sync in your project

@jpralle
Copy link
Contributor

jpralle commented May 12, 2020 via email

@jpralle
Copy link
Contributor

jpralle commented Jul 31, 2020

I just trried to reproduce your error, but had no success. When I start the application, I get no errors on the console or in the dev tools network tab, except for the favicon, which is intentional. When I open http://localhost:8080/site/js/angular/polyfills.bundle.js it also shows the JS correctly and unter site/src/main/webapp/js/angular there are the needed files.

The only thing I can image, is that the node build does not work properly on your machine. That should result in missing files unter site/src/main/webapp/js/angular and errors during build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants