Skip to content

[WEB] Failed to load assets : packages/build_web_compilers/src/dev_compiler/dart_sdk.js #40151

Closed
@iamsabet

Description

@iamsabet

hi im using 1.10.2-pre.14 latest master by now,

flutter run -d Chrome -v runs successfully but i finally prints :

Failed to load asset at path: packages/build_web_compilers/src/dev_compiler/dart_sdk.js.

           Status code: 404

           Headers:
           {
             "date": "Tue, 10 Sep 2019 13:20:56 GMT",
             "content-length": "9",
             "x-frame-options": "SAMEORIGIN",
             "content-type": "text/plain; charset=utf-8",
             "x-xss-protection": "1; mode=block",
             "x-content-type-options": "nosniff",
             "server": "dart:io with Shelf",
             "via": "1.1 shelf_proxy"
           }

           Content:
           Not Found

Screen Shot 2019-09-10 at 5 41 40 PM

lead to opened blank chrome webpage @ /#/

i appreciate a response ty <3

Steps to Reproduce

pubspec.yaml :

version: 0.0.1

environment:
  sdk: ">=2.4.9 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  flutter_localizations: 
    sdk: flutter
  cupertino_icons: ^0.1.2
  lottie_flutter: ^0.2.0
  rxdart: ^0.22.0
  transparent_image: ^1.0.0
  page_transition: ^1.1.4
  flutter_range_slider: ^0.0.4
  badges: ^1.1.0
  path_provider: ^1.1.2
  simple_permissions: ^0.1.9
  simple_animations: ^1.3.3
  sembast: ^1.17.2+2
  after_layout: ^1.0.7+2
  http: ^0.12.0+2
  web_socket_channel: ^1.0.15
  socket_io: ^0.9.0+2
  socket_io_client: ^0.9.4
  image: ^2.1.4

dev_dependencies:
  build_runner: ^1.6.1
  build_web_compilers: ^2.1.1
  flutter_test:
    sdk: flutter

flutter:

  uses-material-design: true
  assets:
    - assets/animations/Teddy.flr
    - assets/animations/pa.flr
    - assets/animations/switch_daytime.flr
    
    - assets/languages/fa.json
    - assets/languages/en.json
    - assets/languages/es.json
    - assets/

Activity

muhleder

muhleder commented on Sep 11, 2019

@muhleder

I've also been seeing this 404, but the web app still runs for me.

acche

acche commented on Sep 11, 2019

@acche

Yes, suffered the same issue after upgrade to 1.9.

added
toolAffects the "flutter" command-line tool. See also t: labels.
and removed
a: assetsPackaging, accessing, or using assets
on Sep 12, 2019
mdebbar

mdebbar commented on Sep 12, 2019

@mdebbar
Contributor
added this to the Near-term Goals milestone on Sep 12, 2019
jonahwilliams

jonahwilliams commented on Sep 12, 2019

@jonahwilliams
Member

This is a non-fatal error, so I'm not currently looking at it

Felizolinha

Felizolinha commented on Sep 16, 2019

@Felizolinha

I'm getting this error, and my webpage doesn't even show up, it's just a blank page. It's happenning both on pre-existing projects and new projects for me.

jonahwilliams

jonahwilliams commented on Sep 16, 2019

@jonahwilliams
Member

@Felizolinha it's likely there is another error that is causing that problem. Try checking the browser console, or running in verbose mode -v.

acche

acche commented on Sep 18, 2019

@acche

Version: 1.10.4-pre.55

Issue still arise.

biswa1751

biswa1751 commented on Sep 19, 2019

@biswa1751

This issue is is due to running debug mode and flutter runs default to debug mode. try flutter run --release -d chrome -v

lavahasif

lavahasif commented on Sep 19, 2019

@lavahasif

thank you biswa .it worked for me .i would like know .where you get this information.i googled as much i can. and also jonahwilliams .he give a spark about this to show this issue .using this command flutter run -d chrome -v

muhleder

muhleder commented on Sep 19, 2019

@muhleder

Well the error is a 404 on the dev compiler js, so running in release mode would mean that shouldn't be loaded.

Actually I'm not seeing this issue any more. Channel master, v1.10.3-pre.46

I run flutter clean in my app dir after updating flutter, maybe that's what you're missing @acche ?

34 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: annoyanceRepeatedly frustrating issues with non-experimental functionalityplatform-webWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.waiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @muhleder@mdebbar@venshine@acche@Felizolinha

        Issue actions

          [WEB] Failed to load assets : packages/build_web_compilers/src/dev_compiler/dart_sdk.js · Issue #40151 · flutter/flutter