Answer the question
In order to leave comments, you need to log in
Why doesn't parent class import work?
If I import the class directly from the file, then everything works:
import { BaseController } from "../../core/lib/BaseController.js";
export class TestController extends BaseController {
constructor(logger) {
super(logger);
this.logger.debug(`${this.constructor.name} -> Initilazed`);
}
// some code
}
export { BaseController } from './lib/BaseController.js';
import { BaseController } from "../../core/index.js";
Cannot access 'BaseController' before initialization
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question