Version conflict between FlutterFlow's js: 0.7.2 and custom package requiring js: ^0.6.3

Integrations

I'm building an app in FlutterFlow, which auto-adds js: 0.7.2 as a dependency. I'm also using a custom package (elevenlabs_conversational2_x2dkep from path), which depends on js: ^0.6.3.

Due to this mismatch, I'm getting the following error during flutter pub get
"Because every version of elevenlabs_conversational2_x2dkep from path depends on flutter_secure_storage_web 1.2.1 which depends on js ^0.6.3, every version of elevenlabs_conversational2_x2dkep from path requires js ^0.6.3.

So, because gblue depends on both elevenlabs_conversational2_x2dkep from path and js 0.7.2, version solving failed."
I tried adding js: ^0.6.3 manually to my pubspec.yaml, but FlutterFlow warns:

js (0.7.2) is automatically added by FlutterFlow.
The version you specified is incompatible with the versions used by FlutterFlow.
This is very likely to cause issues. Consider removing this dependency.

What have you tried so far?
  • Adding js: ^0.6.3 manually (causes warning)

  • Checking for updated version of elevenlabs_conversational2_x2dkep (none found)

  • Considering editing the package’s internal pubspec.yaml to use js: ^0.7.2

Did you check FlutterFlow's Documentation for this topic?
Yes
4
1 reply