Skip to content

Commit

Permalink
Try "type": "commonjs"
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhays committed Feb 26, 2024
1 parent bd48633 commit b96b154
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "box-typescript-jsonwebtoken",
"version": "0.1.0",
"license": "MIT",
"type": "module",
"type": "commonjs",
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down
8 changes: 4 additions & 4 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import BoxSDK from 'box-node-sdk'
// import { BoxJwtAuth, JwtConfig } from 'box-typescript-sdk-gen/lib/jwtAuth.generated.js'
import { BoxJwtAuth, JwtConfig } from 'box-typescript-sdk-gen/lib/jwtAuth.generated.js'
// const { BoxJwtAuth, JwtConfig } = await import('box-typescript-sdk-gen/lib/jwtAuth.generated.js')
import { createRequire } from 'module'
const require = createRequire(import.meta.url)
const { BoxJwtAuth, JwtConfig } = require('box-typescript-sdk-gen/lib/jwtAuth.generated.js')
// import { createRequire } from 'module'
// const require = createRequire(import.meta.url)
// const { BoxJwtAuth, JwtConfig } = require('box-typescript-sdk-gen/lib/jwtAuth.generated.js')

export default function HomePage() {
async function boxGetTokenOld() {
Expand Down

0 comments on commit b96b154

Please sign in to comment.