smartscenes / sstk

SSTK: SmartScenes ToolKit
MIT License
115 stars 41 forks source link

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

Open NikKessel opened 1 week ago

NikKessel commented 1 week ago

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 commented 1 week ago

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