Getting Vercel deployment error for Flutter web app code imported from flutterflow. Carousel_slider dependency is failing. Error: 'CarouselController' is imported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'. #3116
Labels
Can we access your project?
Current Behavior
Hi,
I am getting an error while deploying a flutter-web app on vercel.
I imported the code from flutterflow and while deploying carousal_slider: 4.2.1 is breaking in logs;
The error is :
_'CarouselController' is imported from both 'package:carousel_slider/carousel_controller.dart' and 'package:flutter/src/material/carousel.dart'._
The same issue has been posted to carousel slider github repo.
serenader2014/flutter_carousel_slider#444
Possible cause:
The repo is not maintained anymore and works for flutter sdk: <3 and breaking on flutter sdk version> 3.0.0.
Expected Behavior
It should just deploy.
Steps to Reproduce
Try to deploy any flutter web project imported from flutterflow with carousal_slider:4.2.1 to vercel.
The logs will show the issue as follows:

Reproducible from Blank
Bug Report Code (Required)
ITEelsrq+ZROpbxG1s7ub/pvhQMwJEQnarhE0+wbdwshfJDpEIl3Ps78SxJLYtTmen9EC1eKq3wJp9bykdjlDMc4FAqsf6E41b5XQQvdcFOhRLqJC8yKYHdRHp5PfG6Y0KTYvyZvPtFpSiUn3DuEOfCdG3qCf9qOYwx5e6fDbOY=
Visual documentation
Pubspec dependecy:
Error log in Vercel:
Environment
Additional Information
environment:
sdk: ">=3.0.0 <4.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
The text was updated successfully, but these errors were encountered: