Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot cast '{Instance}' into '{Instance}' because the types are unrelatedLuau1033 #818

Open
NormalDuck opened this issue Nov 8, 2024 · 2 comments

Comments

@NormalDuck
Copy link

image image I am not sure if this is a lune problem or the luau lsp's problem
@JohnnyMorganz
Copy link
Owner

Can you create a minimal example for me to test this with?

@NormalDuck
Copy link
Author

NormalDuck commented Nov 11, 2024

local roblox = require("@lune/roblox")

local foo = roblox.deserializeModel("") :: { Instance }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`TypeError: Cannot cast '{Instance}' into '{Instance}' because the types are unrelatedLuau[1033](https://luau-lang.org/typecheck)`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants