Skip to content

Flutter Web compilation error: File not found #288

@rostopira

Description

@rostopira

I've tried to build project that uses this package on master
It throws an error

$ flutter run -d chrome
Downloading Web SDK...                                              1.6s


Error compiling dartdevc module:http|lib/http.ddc.js

packages/http/src/multipart_file.dart:14:8: Error: Error when reading 'packages/http/src/multipart_file_stub.dart': File not found
import 'multipart_file_stub.dart'
       ^
packages/http/src/multipart_file.dart:93:7: Error: Method not found: 'multipartFileFromPath'.
      multipartFileFromPath(field, filePath,
      ^^^^^^^^^^^^^^^^^^^^^


Failed after 24.7s
Failed to compile for the web.

Flutter doctor:

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.8.1-pre.58, on Mac OS X 10.14.4 18E226, locale en-BY)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions