AzureSignalR-samples icon indicating copy to clipboard operation
AzureSignalR-samples copied to clipboard

How to access the files from the sub folders in index.html?

Open addy1997 opened this issue 9 months ago • 0 comments

Hi there,

image

This is the folder structure of my azure signalR web application built locally in VScode.

I want to access the T12.URDF and box.js files in my index.html. I tried referencing these files in the .csproj of the project so that I can copy them in the output directory when the function is deployed.

<ItemGroup>
    <Content Update="content/components/box.js" CopyToOutputDirectory="PreserveNewest" />
    <Content Update="content/components/control-axes.js" CopyToOutputDirectory="PreserveNewest" />
    <Content Update="content/components/grab-the-cube.js" CopyToOutputDirectory="PreserveNewest" />
    <Content Update="content/components/load-links-and-axes.js" CopyToOutputDirectory="PreserveNewest" />
    <Content Update="content/components/mesh-shadows.js" CopyToOutputDirectory="PreserveNewest" />
    <Content Update="content/assets/T12/urdf/T12_flipped.URDF" CopyToOutputDirectory="PreserveNewest" />
    <Content Update="content/assets/T12/urdf/T12_wrong_axes.orig.URDF" CopyToOutputDirectory="PreserveNewest" />
    <Content Update="content/assets/T12/urdf/T12.URDF" CopyToOutputDirectory="PreserveNewest" />
 </ItemGroup>

The function deploys successfully but when I run the index.html page, I get this error

image

What do I do to fix this?

addy1997 avatar May 02 '24 09:05 addy1997