You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, if Wasper wants to specify an npm dependency (via dependencies declaration) that Wasp is already using in generated code (for example react or react-query), they will get an error message saying that Wasp is already using this package and that they have to specify exactly the same version as Wasp is using.
Next step is to allow Wasper to specify any version they like, and this should be implemented internally via npm aliases, where wasp would use npm alias to refer to its version of package in different way than Wasper. So for example if Wasper declared "react": "^16.12.0" but Wasp is using "react": "^15.0.0", then Wasp should change the name of its dependency via npm aliases to be smth like react-wasp instead of just react. It might still be smart to "warn" Wasper that they are choosing different version than Wasp and that they might want to instead use the same version, to avoid possibly redundant dependencies.
Implementation of this should probably start from Generator.PackageJsonGenerator module.
Much of this is also discussed in possibly more details in issue #11 , where current implementation was designed and future implementations were discussed.
The text was updated successfully, but these errors were encountered:
Right now, if Wasper wants to specify an npm dependency (via
dependencies
declaration) that Wasp is already using in generated code (for examplereact
orreact-query
), they will get an error message saying that Wasp is already using this package and that they have to specify exactly the same version as Wasp is using.Next step is to allow Wasper to specify any version they like, and this should be implemented internally via
npm aliases
, where wasp would use npm alias to refer to its version of package in different way than Wasper. So for example if Wasper declared"react": "^16.12.0"
but Wasp is using"react": "^15.0.0"
, then Wasp should change the name of its dependency via npm aliases to be smth likereact-wasp
instead of justreact
. It might still be smart to "warn" Wasper that they are choosing different version than Wasp and that they might want to instead use the same version, to avoid possibly redundant dependencies.Implementation of this should probably start from
Generator.PackageJsonGenerator
module.Much of this is also discussed in possibly more details in issue #11 , where current implementation was designed and future implementations were discussed.
The text was updated successfully, but these errors were encountered: