We help IT Professionals succeed at work.

module cannot be found

chalie001
chalie001 asked
on
Medium Priority
59 Views
Last Modified: 2020-02-16
module cannot be found but i do have it
module
Comment
Watch Question

CERTIFIED EXPERT
Most Valuable Expert 2018
Distinguished Expert 2019
Commented:
Hi,

Try removing the @ and importing from a relative location instead:

Import { AuthenticationService } from './_services';

Depending on your project setup, it's likely that the @ symbol is resolving to a path where the _services folder can't be found.
CERTIFIED EXPERT
Most Valuable Expert 2017
Distinguished Expert 2019

Commented:
Remove the import statement completely
On line 10 backspace over the 'e' of AuthenticationService
Type the 'e' again
VS Code will give you a list to chose from - choose AuthenticationService and press Tab
VS Code will add the correct import for you