Sai Sushmitha
Sai Sushmitha

Reputation: 1117

Target of URI doesn't exist: 'package:english_words/english_words.dart'.dart

I am getting the above problem, updated the packages too by using the below command : "flutter packages upgrade". Restarted the visual studio code, but didn't solve the problem. Can anyone help me in resolving.

screenshot

Thanks.

Upvotes: 0

Views: 6600

Answers (3)

PRATIK PAWAR
PRATIK PAWAR

Reputation: 322

The problem for me targeted URI doesn't exist was due to the lib folder inside the english_words package was not available at file:///E:/APPS/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/english_words/lib/ so I downloaded it from Github and add it there manually and restarted the IDE. And It worked.

Upvotes: 0

Tal Spektor
Tal Spektor

Reputation: 29

I had the same problem, It work for me by adding: english_words: ^3.1.0 to the dev_dependencies:

dev_dependencies:
  flutter_test:
    sdk: flutter
  english_words: ^3.1.0

Upvotes: 0

Mazin Ibrahim
Mazin Ibrahim

Reputation: 7889

Ensure the alignment of english_words is correct inside your pubspec.yaml as it's "space sensitive" :

dependencies:
  english_words: ^(latest_version) //two spaces

also never align it using tabs, I don't know why but it never works.

Upvotes: 3

Related Questions