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
It looks like Popover for builders has some problems with export(info Module '"melt/builders"' has no exported member 'Popover'). It only happens to Popover components. The rest of the components work fine with import.
Melt version 0.2.1
NPM version 11.0.0
Node version 22.11.0 (the same also with 18.20.5)
Also, there is info in node_modules > melt.
From the node folder, it looks like a TS file for the Popover component is missing.
UPDATE:
After some testing, I found that the problem was with the svelte-package. During the run, it does not create a d.ts file when it encounters some nested types that are not imported. In this case, the problem was in line 55 of the file Popover.svelte.ts in folder builders.
After running the script from @jeannemas in the console, I got:
After adding one line of imports import type { Middleware } from "@floating-ui/core"; to Popover.svelte.ts command build:docs generate missing d.ts file.
I also tried with a bumped version of svelte-check to ^4 with combinations like vite ^6 and a few others, but I never received this same error as with this custom script.
The text was updated successfully, but these errors were encountered:
MalSZ
added a commit
to MalSZ/next-gen
that referenced
this issue
Dec 27, 2024
Adding import type from @floating-ui/core to eliminate the problem that blocks the generating of d.ts file for Popover.svelte.ts during the run of svelte-package
Hi,
It looks like Popover for builders has some problems with export(info Module '"melt/builders"' has no exported member 'Popover'). It only happens to Popover components. The rest of the components work fine with import.
Melt version 0.2.1
NPM version 11.0.0
Node version 22.11.0 (the same also with 18.20.5)
Also, there is info in node_modules > melt.
From the node folder, it looks like a TS file for the Popover component is missing.
UPDATE:
After some testing, I found that the problem was with the svelte-package. During the run, it does not create a d.ts file when it encounters some nested types that are not imported. In this case, the problem was in line 55 of the file Popover.svelte.ts in folder builders.
computePositionOptions?: MaybeGetter<Partial<ComputePositionConfig> | undefined>;
How do I get to this?
During regular runs, it does not show any problem during emit. Helpful was this topic @sveltejs/language-tools#2371 from https://github.com/sveltejs/language-tools
After running the script from @jeannemas in the console, I got:
After adding one line of imports
import type { Middleware } from "@floating-ui/core";
to Popover.svelte.ts command build:docs generate missing d.ts file.I also tried with a bumped version of svelte-check to ^4 with combinations like vite ^6 and a few others, but I never received this same error as with this custom script.
The text was updated successfully, but these errors were encountered: