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

STK.bundle.js missing - Site Functions Not Usable #65

Open
NikKessel opened this issue Sep 23, 2024 · 1 comment
Open

STK.bundle.js missing - Site Functions Not Usable #65

NikKessel opened this issue Sep 23, 2024 · 1 comment

Comments

@NikKessel
Copy link

Description: I am trying to set up SmartScenes locally, and while I can reach the localhost site, I am unable to use certain functions because the STK.bundle.js file is missing after running the build process. The site loads, but any functionality related to STK.bundle.js (e.g., STK.SceneViewer) is unavailable.

Steps to Reproduce:

Followed the instructions to set up the environment.
Installed necessary packages and dependencies.
Ran the build script ./build.sh inside the scene-toolkit directory.
Navigated to the server directory and ran ./run.sh.
Accessed http://localhost:8000, but could not use functions related to STK.bundle.js.

What I Tried: I attempted to fix this by ensuring the necessary build tools and dependencies were installed. Here’s what I tried:

bash

sudo apt-get install build-essential libxi-dev libglu1-mesa-dev libglew-dev libvips

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
source ~/.bashrc
nvm install v14.16.0

cd ${STK}
./build.sh

cd server
./run.sh

Expected Behavior: After running ./build.sh, I expect the STK.bundle.js file to be located at scene-toolkit/client/build/STK.bundle.js, and for the site to load all necessary JavaScript dependencies correctly.

Actual Behavior:

STK.bundle.js is missing after running the build script.
The site loads, but core functionalities depending on STK.bundle.js are not available.

Environment:

Node.js version: v14.16.0
OS: Ubuntu
Browser: Chrome+firefox

The resource from “http://localhost:8010/STK.bundle.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
@angelxuanchang
Copy link
Contributor

The STK.bundle.js is missing likely because there was an error when running build.sh. Please check whether the build succeeded or not.

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

2 participants