-
Notifications
You must be signed in to change notification settings - Fork 30.1k
Description
Everytime I build a flutter webapp with command flutter build web , I get an older version of the app.
This issue has been solved for mobile applications as per 16604, but continues to be a pain on the web.
I'm using chrome Version 88.0.4324.146 (Official Build) (x86_64) on OS X Big Sur.
I've also tried the following as a means of fixing this issue:
- flutter clean before build
- flutter pub cache repair and then followed by step 1
- git clean -fdx in the root and build folder of my project followed by step 1 above
Here is an output of the web build command
flutter build web -v [ +99 ms] executing: [/Users/tevin/Applications/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +62 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] f3c10bd23a274f51579f662986e871cb45d6d941 [ ] executing: [/Users/tevin/Applications/flutter/] git tag --points-at f3c10bd23a274f51579f662986e871cb45d6d941 [ +160 ms] Exit code 0 from: git tag --points-at f3c10bd23a274f51579f662986e871cb45d6d941 [ +4 ms] executing: [/Users/tevin/Applications/flutter/] git describe --match *.*.* --long --tags f3c10bd23a274f51579f662986e871cb45d6d941 [ +80 ms] Exit code 0 from: git describe --match *.*.* --long --tags f3c10bd23a274f51579f662986e871cb45d6d941 [ ] 1.26.0-17.0.pre-215-gf3c10bd23a [ +52 ms] executing: [/Users/tevin/Applications/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/master [ ] executing: [/Users/tevin/Applications/flutter/] git ls-remote --get-url origin [ +7 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +53 ms] executing: [/Users/tevin/Applications/flutter/] git rev-parse --abbrev-ref HEAD [ +10 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] master [ +6 ms] executing: sw_vers -productName [ +21 ms] Exit code 0 from: sw_vers -productName [ ] macOS [ ] executing: sw_vers -productVersion [ +14 ms] Exit code 0 from: sw_vers -productVersion [ ] 11.1 [ ] executing: sw_vers -buildVersion [ +13 ms] Exit code 0 from: sw_vers -buildVersion [ ] 20C69 [ +11 ms] executing: sysctl hw.optional.arm64 [ +9 ms] Exit code 1 from: sysctl hw.optional.arm64 [ ] sysctl: unknown oid 'hw.optional.arm64' [ +81 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +88 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'FlutterSdk' is not required, skipping update. [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ ] Artifact Instance of 'PubDependencies' is not required, skipping update. [ +79 ms] Skipping pub get: version match. [ +98 ms] Found plugin firebase_auth at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.20.0+1/ [ +10 ms] Found plugin firebase_auth_web at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.3.2+6/ [ +2 ms] Found plugin firebase_core at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.7.0/ [ +4 ms] Found plugin firebase_core_web at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.2.1+3/ [ +6 ms] Found plugin fluttertoast at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.1.6/ [ +33 ms] Found plugin package_info at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.3+2/ [ +6 ms] Found plugin path_provider at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.24/ [ +2 ms] Found plugin path_provider_linux at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/ [ +2 ms] Found plugin path_provider_macos at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+6/ [ +3 ms] Found plugin path_provider_windows at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/ [ +20 ms] Found plugin sentry_flutter at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/sentry_flutter-4.0.1/ [ +151 ms] Found plugin firebase_auth at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.20.0+1/ [ +1 ms] Found plugin firebase_auth_web at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.3.2+6/ [ ] Found plugin firebase_core at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.7.0/ [ +1 ms] Found plugin firebase_core_web at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.2.1+3/ [ +2 ms] Found plugin fluttertoast at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.1.6/ [ +14 ms] Found plugin package_info at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.3+2/ [ +2 ms] Found plugin path_provider at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.24/ [ ] Found plugin path_provider_linux at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/ [ ] Found plugin path_provider_macos at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+6/ [ +1 ms] Found plugin path_provider_windows at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/ [ +6 ms] Found plugin sentry_flutter at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/sentry_flutter-4.0.1/ [ +29 ms] Generating /Users/tevin/git/work/RunningHillPartners/io/dashboard/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +32 ms] executing: sysctl hw.optional.arm64 [ +4 ms] Exit code 1 from: sysctl hw.optional.arm64 [ ] sysctl: unknown oid 'hw.optional.arm64' [ ] executing: xcrun xcodebuild -version [+1644 ms] Exit code 0 from: xcrun xcodebuild -version [ ] Xcode 12.2 Build version 12B45b [ +66 ms] Building without sound null safety [ ] For more information see https://dart.dev/null-safety/unsound-null-safety [ +30 ms] Found plugin firebase_auth at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.20.0+1/ [ +1 ms] Found plugin firebase_auth_web at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.3.2+6/ [ ] Found plugin firebase_core at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.7.0/ [ +1 ms] Found plugin firebase_core_web at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.2.1+3/ [ +3 ms] Found plugin fluttertoast at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.1.6/ [ +13 ms] Found plugin package_info at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.3+2/ [ +4 ms] Found plugin path_provider at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.24/ [ +2 ms] Found plugin path_provider_linux at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/ [ +1 ms] Found plugin path_provider_macos at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+6/ [ +3 ms] Found plugin path_provider_windows at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/ [ +9 ms] Found plugin sentry_flutter at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/sentry_flutter-4.0.1/ [ +50 ms] Found plugin firebase_auth at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.20.0+1/ [ +1 ms] Found plugin firebase_auth_web at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.3.2+6/ [ +1 ms] Found plugin firebase_core at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.7.0/ [ +1 ms] Found plugin firebase_core_web at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.2.1+3/ [ +2 ms] Found plugin fluttertoast at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/fluttertoast-7.1.6/ [ +8 ms] Found plugin package_info at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.3+2/ [ +2 ms] Found plugin path_provider at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.24/ [ ] Found plugin path_provider_linux at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/ [ ] Found plugin path_provider_macos at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-0.0.4+6/ [ +1 ms] Found plugin path_provider_windows at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/ [ +5 ms] Found plugin sentry_flutter at /Users/tevin/.pub-cache/hosted/pub.dartlang.org/sentry_flutter-4.0.1/ [ +15 ms] Compiling lib/main.dart for the Web... [ +9 ms] Initializing file store [ +9 ms] Done initializing file store [ +91 ms] Skipping target: web_entrypoint [ +11 ms] Skipping target: gen_localizations [ +876 ms] Skipping target: dart2js [ +18 ms] invalidated build due to missing files: /Users/tevin/git/work/RunningHillPartners/io/dashboard/DOES_NOT_EXIST_RERUN_FOR_WILDCARD1071880749 [ +188 ms] web_release_bundle: Starting due to {InvalidatedReason.inputMissing, InvalidatedReason.inputChanged} [ +162 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466. [ +76 ms] web_release_bundle: Complete [ +259 ms] web_service_worker: Starting due to {InvalidatedReason.inputChanged, InvalidatedReason.outputChanged} [ +123 ms] web_service_worker: Complete [ +2 ms] Persisting file store [ +11 ms] Done persisting file store [ +30 ms] Compiling lib/main.dart for the Web... (completed in 1 852ms) [ +1 ms] "flutter web" took 4 415ms. [ +260 ms] ensureAnalyticsSent: 254ms [ +2 ms] Running shutdown hooks [ ] Shutdown hooks complete [ ] exiting with code 0