I'm having trouble integrating Troika with my three-js scene. While others seem to have no issue, I am struggling to call the module and encountering problems with references. It's frustrating because I can't seem to find any resources to help me resolve these issues.
I already have three-js running perfectly, but when I try to install Troika (npm install troika-three-text), it creates folders in the node_modules directory. The installation instructions say to call it using:
import { Text } from 'troika-three-text',
However, when I do this, I receive the error message:
'Uncaught TypeError: Failed to resolve module specifier "troika-three-text". Relative references must start with either "/", "./", or "../".'
I then attempted:
import { Text } from '../node_modules/troika-three-text/dist/troika-three-text.esm.js'
But now I am facing another issue:
'Failed to resolve module specifier "troika-worker-utils". Relative references must start with either "/", "./", or "../".'
I'm at a loss on how to proceed. Do I need to manually update all the paths within the Troika scripts, or is there another solution? Any help would be greatly appreciated. Thank you!