"__webpack__require__.e is not a function" Error while importing modules

I’m gettind the error in the picture below while importing a module in app.module.ts

It seems to be a problem with the path reference, since I’m importing like

import { LoginPageModule } from '../pages/login/login.module';

It seems that I should put the full path, but when I try:

import { LoginPageModule } from 'src/app/pages/login/login.module';

I get an error saying “Path not found”.

Since I’m a complete beginner, I don’t know what to do. Any help?