Closed Udbhav8 closed 5 months ago
👋 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! 🚀
Are you using ES Modules by chance? Can you share your tsconfig.json
? Are you using a bundler?
Hi - I'm working on this project with @Udbhav8.
Here's out tsconfig.json:
{
"compilerOptions": {
"lib": ["es2023", "dom"],
"module": "esnext",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"typeRoots": ["node_modules/@types", "./typings"],
"isolatedModules": true,
"noEmit": true
},
}
What I think happened is that SST is using the wrong package files, probably the dist-browser
due to how the package.json
defines the module
field.
Is there a way you can force it to use dist-src
directly instead of relying on what is defined in the package.json
?
The build system it uses is no longer maintained, but the package was rewritten to ESM in v2 so it no longer uses that build system.
We're stuck with version 1 of that package unfortunately.
I don't know if it's worth changing the build system since v1 is only in maintenance releases
@Udbhav8 @arturenault Do you have any updates? Is this still an issue
We switched to ESM natively and removed CJS. The universal-github-app-jwt library was updated as well and it should fix this issue.
Closing since no response
What happened?
The app.getInstallationOctokit() function does not behave as expected and throws the error message given below. It looks like the error originates from the library universal-github-app-jwt library which is using the browser version of node instead.
Versions
octokit/app: ^14.0.0 node version : v18.17.0
Relevant log output
Code of Conduct