Skip to content

Target of URI doesn't exist: 'google/protobuf/timestamp.pb.dart'. #483

@palkerecsenyi

Description

@palkerecsenyi

Steps to reproduce

article.proto

syntax = "proto3";
package example;

import "google/protobuf/timestamp.proto";

message Article {
  google.protobuf.Timestamp time = 1;
}
protoc --dart_out=. article.proto

The generated Dart code contains an import: import 'google/protobuf/timestamp.pb.dart' as $0; that points to a non-existent file path. I can't find any documentation on how to fix this.

Flutter 1.22.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 9b2d32b605 (5 weeks ago) • 2021-01-22 14:36:39 -0800
Engine • revision 2f0af37152
Tools • Dart 2.10.5
libprotoc 3.15.3
protobuf: ^1.1.3

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