Stellarium / stellarium-web-engine

JavaScript planetarium engine
453 stars 92 forks source link

Uncaught TypeError: vue.camelize is not a function #198

Closed Akinetopsia1 closed 1 year ago

Akinetopsia1 commented 1 year ago

I've been trying unsuccessfully for days to get this to work. Documentation is lacking essential bits of info, such as which emsdk version to use (after a lot of searching around it seems to be 1.40.1) and what dependencies are required.

After finally being able to "make js", following the readme.md in /apps/, basic pages load but template text is not getting replaced and I get Vue and CORS errors:

Uncaught TypeError: vue.camelize is not a function
    ExpandTransitionGenerator expand-transition.ts:16
    <anonymous> index.ts:26
    <anonymous> vuetify.js:10
    <anonymous> vuetify.js:11
Uncaught TypeError: Vuetify is not a constructor
    <anonymous> http://192.168.255.130:8000/apps/simple-html/stellarium-web-engine.html:193

and many CORS errors

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://stellarium.sfo2.cdn.digitaloceanspaces.com/i18n/v1/gui/en.json. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.
chriscohnen commented 1 year ago

Hi, I actually ran into the same problem "Uncaught TypeError: vue.camelize is not a function" and fixed it by changing stellarium-web-engine.html line

to

to load previous version of vuetify instead of the current one.