#Running the web project independently

1 messages · Page 1 of 1 (latest)

jovial storm
#

We have created a small Needle scene and now handing over the project to the frontend-devs working on the website.
However, when we try to build the web project (npm install + npm start) independent of Unity we experience issues. Mainly this one:
Error: The following dependencies are imported but could not be resolved: @tweenjs/tween.js (imported by [my-path]/CameraSettingsMenu.ts)

Any ideas how we can fix this?

mental summitBOT
# jovial storm We have created a small Needle scene and now handing over the project to the fro...

Thanks for reaching out @jovial storm

Please read through the following and share the information requested. This will help us to better assist you.

Description

Describe the issue that you're seeing. Please be as detailed as possible e.g. is this issue happening in Unity or Blender, which Needle Engine version are you using, do you see any errors in the Editor or Browser console, etc.

Information:

  • If you're using Unity click the menu item Needle Engine/Report a Bug/Copy Project Info to Clipboard. Please share the results below.
  • Please provide code snippets using Discord Code Blocks
  • Have you contacted Needle through another channel or just through Discord?

Thanks for submitting!

💡 Did you know that we now also have a forum with AI support? Join now with your discord account!

crisp fiber
#

Is @tweenjs/tween.js installed in the package.json ?

#

This sounds like something the frontend devs should be able to fix - it's a wrong import in CameraSettingsMenu. Maybe you don't even use the tweenjs library. Can you check the CameraSettingsMenu.ts file?

jovial storm
#

It works if I install @tweenjs in the unity folder which is a little weird and forces us to run two npm install. @tweenjs was already installed in the web project. Is it possible to make the web project a little more isolated so that e.g Netlify could build the project on commit?