简体   繁体   中英

Uncaught SyntaxError: Unexpected token '<' in app.js in Gcloud

I'm very new to Gcloud after 4 attempts I deployed local Laravel + Vue Project to Gcloud. It worked fine in local env, but the app showing blank page after deployment and the console showing below error message. Uncaught SyntaxError: Unexpected token '<' app.js.

Even the resource files also not visible.

App link: https://fluted-vehicle-277421.el.r.appspot.com/

Can anyone suggest what went wrong?

This error typically gets thrown when in js file you have put html.

Try checking if you have html inside js file and remove it.

Regarding the error you mentioned in your post, as you can see here , this error is most likely the result of a 404 page or a redirect to a page that serves regular html instead of the JavaScript files.

On the other hand, I am not sure if you deployed a new version but currently, the error I see if I go to your site is "There is no existing directory at "C:\xampp\htdocs\LMS_project\storage\logs" and its not buildable: Permission denie". So, as I can see these errors are because you are not change correctly the paths in your app. You need to ensure the right paths in order to avoid this errors.

I'm very new to Gcloud after 4 attempts I deployed local Laravel + Vue Project to Gcloud. It worked fine in local env, but the app showing blank page after deployment and the console showing below error message. Uncaught SyntaxError: Unexpected token '<' app.js.

Even the resource files also not visible.

App link: https://fluted-vehicle-277421.el.r.appspot.com/

Can anyone suggest what went wrong?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM