Adamgreg
Adamgreg
DDeno
Created by Josh on 7/9/2024 in #help
Issues importing FullCalendar
It doesn't look like FullCalendar really supports SSR anyway
9 replies
DDeno
Created by Josh on 7/9/2024 in #help
Issues importing FullCalendar
Then in your component body you could put some placeholder that will be server-side rendered and shown until FullCalendar runs on the client
9 replies
DDeno
Created by Josh on 7/9/2024 in #help
Issues importing FullCalendar
I guess you could also create it in the non-React new Calendar(...).render() way, in a useEffect hook of an island component. I think using its React connector probably only buys you rerendering if its props change (and perhaps they won't?)
9 replies
DDeno
Created by Josh on 7/9/2024 in #help
Issues importing FullCalendar
your import map is fine, and I can reproduce your problem. Interestingly, FullCalendar apparently uses Preact internally, but there seems to be no way of using it without the compatibility layer
9 replies
DDeno
Created by Josh on 7/9/2024 in #help
Issues importing FullCalendar
Hi @Josh I don't think you have a problem with your react-preact aliasing (now). I've tried those URLs you're using with deno info, and it only picks up Preact
9 replies
DDeno
Created by Adamgreg on 9/6/2023 in #help
`deno check` error: Cannot find name 'Deno'`
That's awesome, thanks!
10 replies
DDeno
Created by Adamgreg on 9/6/2023 in #help
`deno check` error: Cannot find name 'Deno'`
Ah, thanks. I didn't see a hint from VS Code. Since the Typescript compiler is bundled inside Deno itself in this case, would it be possible to make a change in Deno so that this is unnecessary? I assume there's no scenario where Deno is unavailable?
10 replies
DDeno
Created by Adamgreg on 9/6/2023 in #help
`deno check` error: Cannot find name 'Deno'`
In case it helps anyone else: I resolved the problem by adding /// <reference lib="deno.ns" /> to the top of the module that used the Deno object. I still don't know why that became necessary (after updating a dependency?), and why is it not necessary in every module that uses Deno
10 replies
DDeno
Created by Adamgreg on 7/21/2023 in #help
LSP badly resolves relative imports between cached modules
I realised I probably should have just raised this as a bug, so I've done that now: https://github.com/denoland/deno/issues/19908
3 replies
DDeno
Created by Adamgreg on 7/21/2023 in #help
LSP badly resolves relative imports between cached modules
For anyone with the same problem - this is linked to an entry in the import map - "/": "./", copied from here: https://deno.land/manual@v1.35.2/basics/import_maps#example---using-project-root-for-absolute-imports . If I comment that out, the problem goes away. Adding an explicit "../": "../" to the import map also resolves it, so that's what I've done
3 replies