Skip to content

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

@dhirajbajaj

Description

@dhirajbajaj

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

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:
image

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

ITEelsrq+ZROpbxG1s7ub/pvhQMwJEQnarhE0+wbdwshfJDpEIl3Ps78SxJLYtTmen9EC1eKq3wJp9bykdjlDMc4FAqsf6E41b5XQQvdcFOhRLqJC8yKYHdRHp5PfG6Y0KTYvyZvPtFpSiUn3DuEOfCdG3qCf9qOYwx5e6fDbOY=

Visual documentation

Pubspec dependecy:

image

Error log in Vercel:

Screenshot 2024-06-13 15 16 53

Environment

- FlutterFlow version: 
environment:
  sdk: ">=3.0.0 <4.0.0"

dependencies:
  flutter:
    sdk: flutter

- Platform:Web
- Browser name and version: NA, Chrome
- Operating system and version affected: NA

Additional Information

environment:
sdk: ">=3.0.0 <4.0.0"

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions