Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
addy1997 opened this issue May 2, 2024 · 0 comments
Open

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

addy1997 opened this issue May 2, 2024 · 0 comments

Comments

@addy1997
Copy link

addy1997 commented May 2, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant