skip to Main Content

Javascript – Cannot access class before initialization when imported from package, but works when imported from file path

I have this class (AppProvider.js): import Provider from '../../node_modules/hydro/src/Provider.js' export default class extends Provider { booting() { console.log('AppProvider booting') } booted() { console.log('AppProvider booted') } } which extends this class (Provider.js): export default class { booting() { console.log('Provider booting') }…

VIEW QUESTION
Back To Top
Search