skip to Main Content

I’m trying to import auth_user.dart, and for some reason it tells me that:
"Target of URI doesn’t exist"

Here’s my project:
enter image description here

I tried doing:

import 'package:notes_pro/services/auth/auth_user.dart';

What am I doing wrong? (I’m sure it’s obvious, sorry in advance!)

2

Answers


  1. just use "auth_user.dart" and it will work. Those imports use simple terminal paths. So if you have any project file within different folders you can use "../second_directory/auth_user.dart"

    ".." will move up one directory

    Login or Signup to reply.
  2. Importing it with the full path and package name should work.
    Otherwise, check if the name in the pubspec.yaml file matches what you are using in your path (‘package:notes_pro/services/auth/auth_user.dart’) when doing imports.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search