bluwy / whyframe

Develop components in isolation with just an iframe

Home Page:https://whyframe.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Cannot read properties of undefined (reading 'startsWith')

mrwokkel opened this issue · comments

Within Sveltekit when abstracting a component I get TypeError: Cannot read properties of undefined (reading 'startsWith')
Not sure about internals but the data-why-id seems to be missing?

I created a minimal repo:
https://github.com/mrwokkel/framed

Ah looks like I made a mistake checking for the component name here:

!!options.components?.some((n) => code.includes(`<${n}`)))

Making a fix. Thanks for the report!

Fixed in @whyframe/core 0.1.6!