Import error with snowpack and typescript
See original GitHub issueReduced Test Case
https://github.com/abumalick/snowpack-fullcalendar
Bug Description
Using snowpack with typescript as a bundler, when I try the example React implementation of the library. I got an error:
Uncaught Error: Please import the top-level fullcalendar lib before attempting to import a plugin.
Screenshots
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Package not found error when importing .d.ts file #2211 - GitHub
I can get the Snowpack error to go away by adding a .d.ts extension to the import, but then TypeScript becomes unhappy and...
Read more >Common Error Details - Snowpack
If you are using TypeScript, this error could occur if you are importing or exporting something that only exists in TypeScript (like a...
Read more >Snowpack Typescript Imports - Stack Overflow
When I copy-paste the class to a local file and import it using local imports (like below), it works. import SomeClass from './ ......
Read more >Snowpack for Svelte development revisited - codechips
The ES2020 import.meta.env works out of the box, but not in my Vim editor. svelte + ts error in vim.
Read more >@snowpack/plugin-typescript - npm
This plugin adds TypeScript type checking to any Snowpack project.. Latest version: 1.2.1, last published: 2 years ago.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
import '@fullcalendar/core/vdom.js'
this work for me also with
@sveltejs/kit
I was able to resolve it by importing from
@fullcalendar/react/dist/vdom.js
rather than from thecore
package.