Weird issue when Importing Jecs
I am using @rbxts/jecs and I am having a weird issue. For some reason why I import it, the compiled result is "jecs.lua" instead of just "jecs". Error:
My TS:
Compiled:
What can I do to fix this?
22 Replies
upgrade roblox-ts
upgrading from 2.3.0 to 3.0.0 causes 600+ errors mostly in UI. I am using @rbxts/react
you can't be using @rbxts/react
it's not compatible with 2.3.0
2.3.0-dev-576ad98 specifically
the error shouldn't be something related to roblox-ts upgrade
how are you defining that props interface
seems that jsx is making arrays of Nodes while now react is expecting ReactNode
hmmm, it appears @rbxts/jabby is referencing roact, removing the package fixes the issue
is there a way arround that, or is jabby roact only?
do
npm ls @rbxts/roact
can you show a screenshot
Seems that removing @rbxts/jabby and then reinstalling made it work
very strange
probably outdated
thanks for the help!
from what i know jabby uses vide
i just installed it today, which is weird
also from what i know you're going to get hell of a ton compiler errors in a couple of minutes
how so?
i don't know if this was patched, but if it installs vide in your project as a non-direct dependency you're cooked
https://discord.com/channels/476080952636997633/476080952636997635/1334381197157077053
vide is not in package json yet, so maybe it was fixed?
vide is a dependency for jabby
so it installed it
you need to patch vide
by deleting the d.ts file
deleting d.ts results in this error:
cant compile anymore
alright, I hoped this would work
then you should only delete the
declare global
part of itseems to have fixed the issue, thanks!
make sure you use
patch-package
otherwise its gonna overwrite it when npm installs something