Dynamic Importing of an unknown component - NextJs
问题 I want to load a component dynamically based on the route. I'm trying to make a single page which can load any individual component for testing purposes. However whenever I try to do import(path) it shows the loader but never actually loads. If I hard code the exact same string that path contains then it works fine. What gives? How can I get nextjs to actually dynamically import the dynamic import? // pages/test/[...component].js const Test = () => { const router = useRouter(); const {