Hello,
I have been trying to build the app to install it to a subpath (e.g.: https://mydomain.tld/m2m) with:
sed -ri 's@(base: \x27)./@\1/m2m@g' "./vite.config.js" #change base URL
npm install && npm run build
The build succeeds. Then I upload the files it on the server with basic configuration and the app does load in the browser - but the app's right panel does not open on index.html and the console shows the following error:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
parse GLTFLoader.js:447
load GLTFLoader.js:309
load three.core.js:44095
promise callback*load three.core.js:44083
load GLTFLoader.js:305
load_model_file StepLoadModel.ts:160
setup_model_buttons MarketingBootstrap.ts:32
setup_model_buttons MarketingBootstrap.ts:55
add_event_listeners MarketingBootstrap.ts:61
add_event_listeners MarketingBootstrap.ts:60
d MarketingBootstrap.ts:11
<anonymous> MarketingBootstrap.ts:81
GLTFLoader.js:289:13
As for create.html, it works as expected, and shows no error in the console.
That is unlikely to be a server-related issue because if I build the app without changing the base URL and install it at domain's root, the app works as expected and does not show such error.
Hello,
I have been trying to build the app to install it to a subpath (e.g.: https://mydomain.tld/m2m) with:
The build succeeds. Then I upload the files it on the server with basic configuration and the app does load in the browser - but the app's right panel does not open on
index.htmland the console shows the following error:As for
create.html, it works as expected, and shows no error in the console.That is unlikely to be a server-related issue because if I build the app without changing the base URL and install it at domain's root, the app works as expected and does not show such error.