I am using dynamic import in next js. The component is rendered when I directly use the path. But it is not rendering when I use the path from a variable.
const faq = dynamic(() => import('../faq/faq'))
This works fine. but,
const path = '../faq/faq';
const faq = dynamic(() => import(path ))
This is not working. How can I fix this?