Skip to content

importing private libaries during build_runner build #325

Description

@codekeyz
// This file has been generated by the reflectable package.
// https://github.com/dart-lang/reflectable.

import 'dart:core';
import 'dart:_http' as prefix8; // <---- why is it importing private libraries? 
import 'dart:async' as prefix9;
import 'package:pharaoh/src/http/request.dart' as prefix5;
import 'package:pharaoh/src/http/response.dart' as prefix6;

I am trying to use Cookie in a Class that is reflectable. I imported Cookie from

import 'dart:io' show Cookie;

And this is the error i get

test/router_test.reflectable.dart:5:8: Error: Can't access platform private library.
  import 'dart:_http' as prefix9;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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