-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
new npm packages can not support multiple threejs versions #21837
Comments
If you'd like to understand more about why the npm-published examples were changed to import from
Is there a reason you need to import multiple versions of three at once? Can you not change which version of three is aliased between running the test suite? Being more explicit in your setup would be helpful. |
Hi thanks for the quick reply. So in theory i just have to change the imports in the code from import 'three' to import 'three128' so it get the code from the old 119 version. which was working with this method because the threejs code would go and read its own library instead of using the webpack way. I understand why you updated the import path to 'three' is there another way to use multiple versions of threejs for testing? Thanks |
You have to use another workflow in your project to solve this issue. Instead of doing this:
You have to change the |
Hi |
I've meant instead of changing the imports in your code (which is no good approach anyway), you modify the dependency in Sorry, but we are not going to change something in the repository. If you need more help, I suggest you try it at stackoverflow or the forum. |
Hi
i am using a webpack project and would like to test multiple versions of threejs using npm aliases
https://stackoverflow.com/questions/26414587/how-to-install-multiple-versions-of-package-using-npm
Up to 119.1 this works but in the recent versions many js files include the three js library absolutely and not relatively
for example in the node_modules many files have this
import { MathUtils } from 'three';
but they used to have this
import { MathUtils } from '../../../../build/three.module.js';
the strange thing is that in the git repo all imports are relative but when i use npm to checkout the are absolute and use 'three' instead of '../../../../build/three.module.js';
Is there anything i can do?
thanks
The text was updated successfully, but these errors were encountered: