-
Notifications
You must be signed in to change notification settings - Fork 1k
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
@octokit/types is no longer available after 4.0.0 #2683
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with |
I can't seem to access your codesandbox |
Apologies. I've made it public now. |
@wolfy1339 I realised I wrote the wrong import, it's updated now to |
This seems like it's an issue with pnpm and TypeScript. When using npm the types work just fine |
it's probably in a subfolder. What do you get when you run |
|
I'm using npm locally. I think that's a red herring because codesandbox defaulted to using pnpm |
I don't have much experience with |
If you want to use Anyways, it's always a good idea to have it as a dependency if you are going to interact with it directly in your code |
@gr2m @wolfy1339 not sure if you missed my earlier reply, but I'm not using pnpm locally. It was the default of codesandbox. Edit: I was able to get it working on codesandbox with npm however, so I'm trying to narrow down the differences in tsconfig. |
Yes, I saw your comment. My comment explains why it wasn't working with pnpm, and the tidbit i shared is valid for both npm and pnpm |
I think that's a perfect solution @wolfy1339. It works fine for me to set Thanks very much for your help. |
@octokit/types
is no longer available for me after 4.0.0, I get this error:Cannot find module '@octokit' or its corresponding type declarations.
Some relevant information, as it seems the
types
directory is missing in 4.0.0:The
node_modules/@oktokit
contents on 3.1.0:The
node_modules/@octokit
contents after 4.0.0:My package.json entries between upgrading to 4.0.0 (most lines have been removed for the sake of brevity):
Before:
After:
tsconfig.json
is using the node16 for module/moduleResolution.I've made a small reproduction showing this issue: https://codesandbox.io/p/devbox/4wls6z?file=%2Fsrc%2Findex.ts%3A13%2C1
Originally posted by @mjfwebb in #2598 (comment)
The text was updated successfully, but these errors were encountered: