DEV Community

ValerianaGit💙
ValerianaGit💙

Posted on • Updated on

🛠️Coming back to a Flutter project after not opening it for a while

This list will be proactively updated

We have all come across this in the Flutter world. A project is not opened for some time and it is bound to have some breaking changes.

Toolkit to the rescue!

Here are some tips that have helped get flutter projects up and running again.

March 13th 2023

🚨Error: Unknown (turns out it is a pod issue)

  • delete Derived data
    • Open Runner
    • File
    • workspace settings
    • Derived data ->
    • delete everything inside derived data *
  • restart computer
  • flutter upgrade

  • pod install? check [[Cocoapods]] - helped

    • sudo gem install cocoapods
  • Now there are breaking changes from third party libraries (drift) - figure those out

    • -> ran flutter pub run build_runner build and was able to regenerate the .g file, that was the issue RUNS!

March 30th 2023

🚨Error Invalid depfile

fixed by deleting this import command
import 'dart:html';
and running
flutter clean
flutter pub get

April 20th 2023

🚨 Error 'Could not find filename pubspec.yaml'
fixed with these commands
seems to be an issue with my pubs cache

Also, make sure you are running terminal commands from the root of your project

Top comments (0)