Using SplineRuntime with Webpack and Babel #131
Replies: 2 comments
-
Hey, you should switch to webpack 5. |
Beta Was this translation helpful? Give feedback.
-
Oh okay, I hope thats possible, I work at a digital agency as an intern and I hope they can upgrade the whole project. |
Beta Was this translation helpful? Give feedback.
-
Hello,
First of all, I know that this isn't the splinetool/runtime repo, because that doesnt exist on github, sadly... I hope it is still okay if I ask this here, because its also developed by splinetool.
I am currently working on a project where I import a Splinescene with the splineruntime into my project - I have developed it locally in JS with npm create vite@latest and everything worked great. However, now I am trying to transfer my code from my local JS-project into a larger project, which is using webpack for packaging and babel. And now, whenever I try to create my spline application, like this:
I get this error:
and it goes on and on (I think its printing the whole runtime-file to the console). Does anyone have an idea how I could fix this?
I am using:
-typescript: 4.2.3
-webpack: 4.46.0
-webpack-cli: 4.9.2
-babel: 7.18.2
Beta Was this translation helpful? Give feedback.
All reactions