-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
[BUG]: Unable to compile with Typescript. #4
Comments
Hey, sorry I didn't this issue until now, my apologies. I can indeed reproduce this issue and will try and resolve it. As an alternative until then you can see if adding |
Adding |
I think i'm going to close this issue for now then 😅. From an initial look it seems that not having |
I pray that this can be resolved sometime soon 🙏🏼 I'm running into an issue with |
What about the |
In specific, it won't properly resolve types. Anything for the package that is defined gets resolved as "any". |
I did some searching and I believe the culprit is some circular dependency in one of the .d.ts files |
I was going to try debugging the issue and open a PR, though I couldn't figure out how to properly build source 😅 |
It honestly might be the fact that type files are named .types.ts rather than .d.ts Edit: Actually not sure, since the build code (from npmjs) seems fine |
@sqikerz the |
That seems interesting. From my testing it seems that the issue is with the Also to build the code run |
Which version is this happening in? |
Version for what in specific? |
Made some modifications (mainly verbose, and not using bun/ts at all in the build process), and I got this: Seems like a known issue, node and bun types are conflicting - oven-sh/bun#8761 |
Yea I did try this, but I get this error:
EDIT: Also pulled latest, forgot to do that, still occurs though. |
It seems you are missing the
|
Thanks! Though, running into this issue now for some reason? I ran the install script so I have all of the modules installed.
|
You can remove that line, not sure why its there - I thought i removed it 😅. |
@LuckFire You should now be able to compile your typescript project without |
Sorry for the late reply, it does compile somewhat now, but on the latest version it seems like there's still some issues. I can't import node_modules/.pnpm/openblox@1.0.38_typescript@5.4.5/node_modules/openblox/dist/apis/cloud/index.d.ts:1:28 - error TS2307: Cannot find module './assets' or its corresponding type declarations.
1 export * as AssetsApi from "./assets"; If you need me to, I will make a separate issue about this. |
It looks like some exports were missing from |
Only issue I'm running into now is the failing export for |
Ok should be fixed now. It turns out the My apologies for the bother. 😅 |
No worries, I appreciate you resolving all of these issues (especially so quickly)! Everything seems to build flawlessly now, any future issues I have I'll create a separate issue for instead of commenting under this one again. Again, I really appreciate the help 🙏🏼 super excited to use this package |
I have been attempting to integrate Openblox into a project of mine, but on compile I run into this error:
To make sure that this was not something happening on my end, I set up a very bare-bones Typescript project to test and make sure that it was a consistent issue. Adding on, it only seems to run into this error when something is being imported with Openblox; removing any imports relating to it, it runs into no issue.
You can find the test code I used here.
The text was updated successfully, but these errors were encountered: