How to make Dart Editor find referenced packages

…衆ロ難τιáo~ 提交于 2019-12-25 02:56:14

问题


In the Dart Editor (x64), I create a new project from the "Polymer Web Application" template.

Immediately after creation, Dart Editor runs pub get command, executes building workspace.

Then for every import directive, like

import 'package:polymer/polymer.dart';

I got the following error: Target of URI does not exist: 'package:polymer/polymer.dart'

How can I make Dart Editor understand references for standard libraries?


回答1:


I assume your pub-cache is corrupted which can usually be fixed by running pub cache repair from command line.



来源:https://stackoverflow.com/questions/29512148/how-to-make-dart-editor-find-referenced-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!