I'm trying to import the module dynamically but It's failing for no reason
import('../Util/Cache/xxx.js').then((module) => {
console.log('module', module);
})
above one is working.
const path = `../Util/Cache/${fileName}`;
import(path).then((module) => {
console.log('module', module);
})
This one is not working.
fileName is xxx.js