Skip to content

Current problem with pre-build scripts? #2695

Closed Answered by schox
schox asked this question in Q&A
Discussion options

You must be logged in to vote

Yes it is now successfully building, using both versions of the pre-build script I originally described in the issue:

I'm not certain what fixed it, but I have noticed that I occasionally need to run:

flutter pub run build_runner clean

before:

flutter pub run build_runner build --delete-conflicting-outputs

on local builds if the envied.g.dart does not get generated correctly. Perhaps this applies to Codemagic builds too. I haven't found a repeatable pattern here.

Also the only other file I edited during this period was pubspec.yaml. Maybe there was an extraneous character under here somewhere:

dev_dependencies:
build_runner: ^2.4.9
custom_lint: ^0.6.4
flutter_launcher_icons: ^0.13.1
envie…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@himesh-cm
Comment options

@schox
Comment options

@himesh-cm
Comment options

@schox
Comment options

Answer selected by himesh-cm
@himesh-cm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
flutter Queries Related to Flutter hp
2 participants