Issue with Dynamic Importing of Svelte Component in JavaScript with Svelte
I'm trying to dynamically import a Svelte component in my project, but I'm encountering a TypeError when including the file extension in the variable that holds the component name. Here is the working example: const componentName = "MyComponent"; let importedComponent…