webarkit / ARnft

A small javascript library for WebAR with NFT
GNU Lesser General Public License v3.0
219 stars 53 forks source link

VueJS file config.json issues when compiling #316

Closed vincenzobologna closed 7 months ago

vincenzobologna commented 8 months ago

Hello,

wonderful porting of ARjs with NFT! I have a problem with config.json. I used this plugin in a VueJS app. When serving in develpment mode no problems appear. The file loaded successfully. Wheni build app for staging/production vue cli try to compile also config.json and when ARnft try to load it recieve an html with error message:

We're sorry but resole-pages doesn't work properly without JavaScript enabled. Please enable it to continue.

How can i use this file correcly or exclude this file from compiling?

thanks in advance!

kalwalt commented 8 months ago

Ho @vincenzobologna i did in the past this little project https://github.com/kalwalt/visualARPoetry based on vue.js. the project Is hosted thanks to Netlify service, buy honestly i don't remember some detail (It Is depliyed with a Dev or prod build?) If you think that can help you i can look at further.... 🙂

vincenzobologna commented 7 months ago

thank you @kalwalt! I'll do a snitch to your project. I see that building app for production environment the app works correctly. I suppose the issues is related to SSL certificate or subpath serving app point, because in stating environment I have a dns like http://x.x.x.x/webapp.

kalwalt commented 7 months ago

@vincenzobologna how did you solved the issue?

vincenzobologna commented 7 months ago

@kalwalt i see the issue was probably related to SSL certificate. in my staging environment I haven't a certificate for used dns. In production environment I have one. This is the only difference between systems.