#Svelte not finding bindings.ts

12 messages · Page 1 of 1 (latest)

eternal pulsar
#

I have a project where i want to use tauri-specta.
But if i import something from bindings.ts the App doesnt load.

Sourcemap for "C:/Code/Asteria Configurator/src/lib/Greet.svelte" points to missing source files
import { GreetReply } from "./bindings";

valid cairn
#

since specta is a community project it’s best to ask questions there (GH issue or discussion)

#

but we can ping @winged rock since he’s an active community member too

eternal pulsar
#

thx

analog tinsel
winged rock
#

Hmm, I’m not sure what’s going on. It’s definitely more to do with your svelte and ts config than a library problem

#

Can you make a small reproduction and put it on GitHub so we can investigate?

eternal pulsar
winged rock
#

Hmm, I'm not getting the error you're getting, but I had to change to import type rather than just import to make it work

eternal pulsar
#

ok let my try it

#

it was the error

#

Thank you so much, this seems like a dumb error