You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install with <code>npm/pnpm install octokit</code>, or <code>yarn add octokit</code>
@@ -86,21 +86,16 @@ Install with <code>npm/pnpm install octokit</code>, or <code>yarn add octokit</c
86
86
import { Octokit, App } from"octokit";
87
87
```
88
88
89
-
</td></tr>
90
-
<tr><th>
91
-
Node 10 and below
92
-
</th><td>
93
-
94
-
Install with <code>npm/pnpm install octokit</code>, or <code>yarn add octokit</code>
95
-
96
-
```js
97
-
const { Octokit, App } =require("octokit");
98
-
```
99
-
100
89
</td></tr>
101
90
</tbody>
102
91
</table>
103
92
93
+
> [!IMPORTANT]
94
+
> As we use [conditional exports](https://nodejs.org/api/packages.html#conditional-exports), you will need to adapt your `tsconfig.json` by setting `"moduleResolution": "node16", "module": "node16"`.
95
+
>
96
+
> See the TypeScript docs on [package.json "exports"](https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports).<br>
97
+
> See this [helpful guide on transitioning to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) from [@sindresorhus](https://github.com/sindresorhus)
0 commit comments