Skip to content

build/serve crash: Unhandled exception: Could not import file builder.dart #995

@afpatmin

Description

@afpatmin

When trying to run command 'pub run build_runner serve' / 'pub run build_runner build',
the terminal outputs:

[INFO] Entrypoint: Generating build script completed, took 421ms
Unhandled exception:
IsolateSpawnException: Unable to spawn isolate: Unhandled exception:
Could not import "file:///X:/project/tool/src/builder.dart" 
from "file:///X:/project/.dart_tool/build/entrypoint/build.dart": 
FileSystemException: Cannot open file, path = 'X:\project\tool\src\builder.dart' 
(OS Error: Det går inte att hitta sökvägen., errno = 3)
null

The issue occured after upgrading build_runner from v 0.7.9+2 to v 0.7.10.

The project doesn't contain a build.yaml or any build.dart scripts

build_runner: 0.7.10
OS: Windows 10
SDK: 2.0.0-dev.22.0
IDE: Webstorm 2017.3.4

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