Answer the question
In order to leave comments, you need to log in
Why doesn't dynamic require work in a route?
There is a module that is compiled on change and there is a route that dynamically loads this module.
router.get( '/info', ( request, response ) => {
const { Info } = require( 'Info' );
console.log( Info.getInfo() ); // данные не меняются. Почему?
} )
; 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