Skip to content

Flutter build web is not working #80189

@Androfant

Description

@Androfant

When I try to build a web release of my app with "flutter build web" it is not updating the projects web-folder.

It's a relatively simple project, recently created with Flutter 2.0. Nothing special.
This problem is not related to the projects code, it must be a problem with the "flutter build web" command itself.

If I delete the web-folder it is not created again.

When I look at the log, I see it is skipping all updates. It is also skipping the targets during the lib/main.dart build.
I guess that's the reason why it isn't updating the web-folder.
The question is: why?

flutter build web -v
[ +86 ms] executing: [C:\Users\Standard\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +59 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] b139559
[ +1 ms] executing: [C:\Users\Standard\flutter/] git tag --points-at b139559
[ +56 ms] Exit code 0 from: git tag --points-at b139559
[ ] 2.0.4
[ +46 ms] executing: [C:\Users\Standard\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ +34 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [C:\Users\Standard\flutter/] git ls-remote --get-url origin
[ +31 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ +73 ms] executing: [C:\Users\Standard\flutter/] git rev-parse --abbrev-ref HEAD
[ +31 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ +101 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ +2 ms] 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.
[ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ +1 ms] 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.
[ +57 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.
[ +1 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.
[ +52 ms] Skipping pub get: version match.
[ +133 ms] Generating

[ +41 ms] Building without sound null safety
[ ] For more information see https://dart.dev/null-safety/unsound-null-safety
[ +46 ms] Compiling lib\main.dart for the Web...
[ +3 ms] Initializing file store
[ +11 ms] Done initializing file store
[ +78 ms] Skipping target: web_entrypoint
[ +5 ms] Skipping target: gen_localizations
[ +372 ms] Skipping target: dart2js
[ +72 ms] Skipping target: web_release_bundle
[ +21 ms] Skipping target: web_service_worker
[ ] Persisting file store
[ +10 ms] Done persisting file store
[ +14 ms] Compiling lib\main.dart for the Web... (completed in 582ms)
[ +1 ms] "flutter web" took 996ms.
[ +4 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ +3 ms] exiting with code 0

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions