Comments (8)
seems stilοΌ
my tsconfig:
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Node",
"esModuleInterop": true,
"strict": true,
"resolveJsonModule": true,
"declaration": true,
"outDir": "dist",
"skipLibCheck": true,
"rootDir": "src"
},
"include": ["src", "types", "bin"]
}
Currently using 4.0.2, works fine on 3.1.2.
from octokit.js.
Please read up https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports
and https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
This is an error with your tsconfig.json
, you have to use either node16
or nodenext
modules and moduleresolution
from octokit.js.
The original author hasn't responded, and given that #2676 was resolved and that this seems like a case of misconfigured TypeScript, I will close this
from octokit.js.
π 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 Status: Up for grabs
. You & others like you are the reason all of this works! So thank you & happy coding! π
from octokit.js.
What is your tsconfig?
from octokit.js.
can you test again with the latest version? We had a build config bug that was resolved in v4.0.2
from octokit.js.
Oh very sorry for taking up your time because of my problem, I made changes based on your suggestions and have fixed the problem, thanks!
from octokit.js.
Yes, my project was not correctly in ESM, not in terms of typescript. After applying NodeNext and absolute imports octokit
works fine.
from octokit.js.
Related Issues (20)
- [BUG]: rest.packages.listPackagesForOrganization return 400 Invalid argument with package type 'container' HOT 2
- Any auth flow currently supported for SPA without backend? HOT 3
- [BUG]: Error authenticating API requests from Octokit JS client when using private key in Azure key vault HOT 4
- Web3 HOT 1
- [BUG]: Cannot create new commit with Octokit HOT 3
- Merge HOT 1
- [DOCS(readme)]: Missing Required Parameter `issue_number` in `issues.createComment ` HOT 2
- [BUG]: No Significant Difference with @octokit Submodules HOT 6
- [BUG]: Unable to get latest deployment for a workflow deployed to an environment HOT 1
- [FEAT]: notifications: filter done/undone HOT 2
- [BUG]: {"error":"Cannot read properties of undefined (reading 'getWebFlowAuthorizationUrl')"} HOT 1
- [BUG]: [@octokit/request-error] `error.code` is deprecated, use `error.status`. HOT 2
- [BUG]: CJS Loader "Unexpected token '{'" HOT 3
- [FEAT]: Do we have the CJS version? If not, are we considering supporting CJS? HOT 5
- Issues with Search REST API: Special Characters Handling HOT 1
- [BUG]: Octokit 4 can't be `import`ed or `require`d HOT 6
- [BUG]: [Nestjs] [ERR_REQUIRE_ESM]: require() of ES Module not supported HOT 3
- @octokit/types is no longer available after 4.0.0 HOT 13
- [FEAT]: A way to prevent auth token being shown to the user, and redirect instead? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from octokit.js.