-
Notifications
You must be signed in to change notification settings - Fork 20
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
Please consider moving troika-three-text
to peerDependency
#74
Comments
Better to remove it then , others have also reported issues with this In the readme will post a link to https://www.npmjs.com/package/troika-three-text as its already runs with vanilla-js |
removed it for now for testing, if its absolutely needed ,will add it back text is removed in [email protected] |
I think you misunderstood my issue🤣 You can move troika-three-text to a peer dependency (not removing |
If it's in peer deps it causes installation error if the user does not have troika text installed They are forced to install troika text even if they don't use the 'text' element And in bundless environment also troika will be needed separately (on discord some users mentioned this issue) Better to keep use it as a external lib since it's already vanilla js (text removal was planned long back when the issues poped up, but had forgotten about it 😭) |
We can configure the dep as an optional peer dep by this https://docs.npmjs.com/cli/v7/configuring-npm/package-json#peerdependenciesmeta |
But that's ok if you decide to remove |
If decision is made to bring for now lets advise users to use troika text directly, without the additional wrapper |
three
version: r170@pmndrs/vanilla
version: latestnode
version: N/Anpm
(oryarn
) version: N/AProblem description:
This is a reproduction link:
https://stackblitz.com/edit/vitejs-vite-vmldb2?file=package.json
Now we use
troika-three-text
0.47.2
as a dependency, meaning we cannot upgrade this dep. But if this version isn't compatible with a higher Threejs version, it will throw an error and cannot be fixed.I developed
Text
in #37 and make this dep topeerDep
, but sadly @vis-prime has moved it todep
in #44.The text was updated successfully, but these errors were encountered: