Dart import package:polymer/polymer.dart error

Issue

I’m trying to create my own element with Polymer, but i can’t import polymer package.
enter image description here

Why it throws error: “Target of URI doesn’t exist”?
In Tools Output window I found 404 error.
enter image description here

And my pubspec.yaml:

name: polymer1

description: A sample web application
dependencies:
  browser: any
  polymer: ">=0.15.1 < 0.17.0"

Solution

I’m pretty sure your pub-cache is corrupted. Try to run pub cache repair from the command line.

Answered By – Günter Zöchbauer

Answer Checked By – Gilberto Lyons (FlutterFixes Admin)

Leave a Reply

Your email address will not be published.