You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've also tried installing @tsconfig/svelte (3.0.0) and adding the following to my tsconfig.json
"extends": "@tsconfig/svelte/tsconfig.json"
But I still get the same error. The codesandbox example imports and renders an installed library component from svelte-easy-crop, so it's not really the same as importing your own components.
When I update the codesandbox example with my own code, adding a Button.svelte and renders it, I get the same as in issue #15: Uncaught TypeError: Component is not a constructor
The text was updated successfully, but these errors were encountered:
When I try to import something with a .svelte ending I get this message:
Cannot find module './svelte-components/Button.svelte' or its corresponding type declarations
I installed a fresh app with create-react-app (react 18.x.x), installed svelte-adapter (0.5.0), and just added a basic button component like this:
and import it in my App.tsx like this:
I've also tried installing
@tsconfig/svelte (3.0.0)
and adding the following to my tsconfig.jsonBut I still get the same error. The codesandbox example imports and renders an installed library component from svelte-easy-crop, so it's not really the same as importing your own components.
When I update the codesandbox example with my own code, adding a Button.svelte and renders it, I get the same as in issue #15:
Uncaught TypeError: Component is not a constructor
The text was updated successfully, but these errors were encountered: