Cannot find referenced source: packages

前端 未结 5 659
我寻月下人不归
我寻月下人不归 2021-01-13 14:10

I have this pubspec.yaml

    name: Dart Pages
    description: The Dart platform.
    dependencies:
      web_compon         


        
5条回答
  •  半阙折子戏
    2021-01-13 14:51

    I had something similar here, with the js-interop package. I changed the ':' to '/' and it worked.

    Original declaration:

        import("package:mongo_dart/mongo_dart.dart");
    

    Modified declaration:

        #import("package/mongo_dart/mongo_dart.dart");
    

    You could also try this (It has worked to me):

        import 'packages/mongo_dart/mongo_dart.dart';
    

提交回复
热议问题