newcat / baklavajs

Graph / node editor in the browser using VueJS
http://baklava.tech
MIT License
1.47k stars 107 forks source link

Cannot import Interfaces in Typescript #411

Open code-snips opened 2 months ago

code-snips commented 2 months ago

Following the example from the docs, typescript cant find these interfaces (it works with @ts-ignore):

import { SliderInterface, IntegerInterface, NumberInterface } from "baklavajs";

vscode suggests the import from a different path:

import { SliderInterface, IntegerInterface, NumberInterface } from "node_modules/@baklavajs/renderer-vue/dist";

i have installed baklavajs 2.4.4

is this issue related to the type override export similar to (https://github.com/newcat/baklavajs/discussions/396)?

suhli commented 2 months ago

same here, @baklavajs/renderer-vue type system seems broken

typescript:
    specifier: ^5.2.2
    version: 5.2.2

image


seems like fix in #409

newcat commented 2 months ago

I released v2.4.5 that includes the fix from #409. Please check if that fixes your issue since I am currently unable to reproduce the problem in my projects.