Problem with threejs-example-image-tracking-portal

Hi,

from

This scene works when built and served locally but when uploaded and published gives 404’s for the css and js. Examining the code in index.html the refs are

href="%27./%27/index.35471abc.css"><script type=“module” src="%27./%27/index.e72abe7c.js"

changing this line to
href=“index.35471abc.css”><script type=“module” src=“index.e72abe7c.js”

fixes the issue.

Any ideas what might be causing this?

Compiled on windows 10.

Hi @mikedunn,

The unexpected

href="%27./%27/index.35471abc.css"><script type=“module” src="%27./%27/index.e72abe7c.js"

translates to

href="'./'/index.35471abc.css"><script type=&ldquo;module&rdquo; src="'./'/index.e72abe7c.js"

This leads me to believe that the --public-url='./'" part of the build script is not being parsed as expected on windows.

Could you please try changing the build script found here to:

"build": "parcel build --public-url ./"
1 Like