GitbookIO / gitbook

The open source frontend for GitBook doc sites
https://www.gitbook.com
GNU General Public License v3.0
27.11k stars 3.87k forks source link

Module not found: Can't resolve '@gitbook/emoji-codepoints' #2449

Closed anjanesh closed 1 month ago

anjanesh commented 1 month ago

I cloned a new gitbook (my first) and I can't seem to get http://localhost:3000/docs.gitbook.com running

node --version
v22.3.0
bun install
bun dev

gitbook:dev:  ○ Compiling /[[...pathname]] ...
gitbook:dev:  ⨯ ./src/lib/emojis.ts:1:1
gitbook:dev: Module not found: Can't resolve '@gitbook/emoji-codepoints'
gitbook:dev: > 1 | import { emojiCodepoints } from '@gitbook/emoji-codepoints';
gitbook:dev:     | ^
gitbook:dev:   2 |
gitbook:dev:   3 | /**
gitbook:dev:   4 |  * Returns the emoji character for the given emoji code.
gitbook:dev:
gitbook:dev: https://nextjs.org/docs/messages/module-not-found
gitbook:dev:
gitbook:dev: Import trace for requested module:
gitbook:dev: ./src/components/primitives/Emoji/Emoji.tsx
gitbook:dev: ./src/components/primitives/Emoji/index.ts
gitbook:dev: ./src/components/primitives/index.ts
gitbook:dev: ./src/components/Cookies/CookiesToast.tsx
gitbook:dev:  ⨯ ./src/lib/emojis.ts:1:1
gitbook:dev: Module not found: Can't resolve '@gitbook/emoji-codepoints'
Henalexandre commented 1 month ago

Hi @anjanesh Have you figured out what was wrong? I just got the same error after installing GitBook for the first time

anjanesh commented 1 month ago

No - and it's a universal issue - not a platform specific one - I tried on Windows and macOS.

addisonschultz commented 1 month ago

Can you try to run npm run build and see if that works successfully?

anjanesh commented 1 month ago
PS D:\workspace\nextjs\gitbook> npm run build

> gitbook@0.1.0 build
> turbo run build

╭──────────────────────────────────────────────────────────────────────╮
│                                                                      │
│                   Update available v2.0.9 ≫ v2.1.2                   │
│    Changelog: https://github.com/vercel/turbo/releases/tag/v2.1.2    │
│           Run "npx @turbo/codemod@latest update" to update           │
│                                                                      │
│        Follow @turborepo for updates: https://x.com/turborepo        │
╰──────────────────────────────────────────────────────────────────────╯
• Packages in scope: @gitbook/emoji-codepoints, @gitbook/icons, @gitbook/react-contentkit, @gitbook/react-math, @gitbook/react-openapi, gitbook
• Running build in 6 packages
• Remote caching disabled
@gitbook/icons:generate: cache miss, executing 631fd354a6896a92
@gitbook/emoji-codepoints:generate: cache miss, executing 4d97fe1af59ef3a5
@gitbook/react-openapi:build: cache miss, executing 13942fe6fd5b522f
@gitbook/icons:generate: $ node ./bin/gen-list.js
@gitbook/react-math:build: cache miss, executing 786b926d847998ac
@gitbook/react-contentkit:build: cache miss, executing 7dd7eed380ae58bb
@gitbook/emoji-codepoints:generate: $ bun ./build.ts
@gitbook/react-math:build: $ tsc
@gitbook/react-openapi:build: $ tsc
@gitbook/react-contentkit:build: $ tsc
@gitbook/icons:generate: ⚠️ Could not find the Pro kit, using the free kit instead
@gitbook/icons:generate: Error: ENOENT: no such file or directory, open 'D:\workspace\nextjs\gitbook\packages\icons\dist\data\styles-map.json'
@gitbook/icons:generate:     at async open (node:internal/fs/promises:639:25)
@gitbook/icons:generate:     at async Object.writeFile (node:internal/fs/promises:1212:14)
@gitbook/icons:generate:     at async Promise.all (index 1)
@gitbook/icons:generate:     at async writeDataFile (file:///D:/workspace/nextjs/gitbook/packages/icons/bin/gen-list.js:63:5)
@gitbook/icons:generate:     at async Promise.all (index 0)
@gitbook/icons:generate:     at async main (file:///D:/workspace/nextjs/gitbook/packages/icons/bin/gen-list.js:54:5) {
@gitbook/icons:generate:   errno: -4058,
@gitbook/icons:generate:   code: 'ENOENT',
@gitbook/icons:generate:   syscall: 'open',
@gitbook/icons:generate:   path: 'D:\\workspace\\nextjs\\gitbook\\packages\\icons\\dist\\data\\styles-map.json'
@gitbook/icons:generate: }
@gitbook/icons:generate: error: script "generate" exited with code 1
@gitbook/icons:generate: ERROR: command finished with error: command (D:\workspace\nextjs\gitbook\packages\icons) C:\Users\AnjaneshLekshminaray\.bun\bin\bun.exe run generate exited (1)
@gitbook/icons#generate: command (D:\workspace\nextjs\gitbook\packages\icons) C:\Users\AnjaneshLekshminaray\.bun\bin\bun.exe run generate exited (1)

 Tasks:    0 successful, 5 total
Cached:    0 cached, 5 total
  Time:    5.532s
Failed:    @gitbook/icons#generate

 ERROR  run failed: command  exited (1)
PS D:\workspace\nextjs\gitbook>
addisonschultz commented 1 month ago

In packages/icons/dist can you add a folder called data? And then try to run npm run build again?

anjanesh commented 1 month ago

build success

PS D:\workspace\nextjs\gitbook> npm run build

> gitbook@0.1.0 build
> turbo run build

turbo 2.1.2

• Packages in scope: @gitbook/emoji-codepoints, @gitbook/icons, @gitbook/react-contentkit, @gitbook/react-math, @gitbook/react-openapi, gitbook
• Running build in 6 packages
• Remote caching disabled
@gitbook/icons:generate: cache miss, executing 351745fba38a8014
@gitbook/react-contentkit:build: cache miss, executing 8be6eabaa6274afc
@gitbook/emoji-codepoints:generate: cache miss, executing 2dbb6b3114b972c2
@gitbook/react-openapi:build: cache miss, executing ffae2382c525ecc0
@gitbook/react-math:build: cache miss, executing 278dcc1aa84b95a7
@gitbook/icons:generate: $ node ./bin/gen-list.js
@gitbook/emoji-codepoints:generate: $ bun ./build.ts
@gitbook/react-contentkit:build: $ tsc
@gitbook/react-math:build: $ tsc
@gitbook/react-openapi:build: $ tsc
@gitbook/icons:generate: ⚠️ Could not find the Pro kit, using the free kit instead
@gitbook/icons:generate: 🎉 1885 icons found
@gitbook/icons:build: cache miss, executing 5895d2c6d0cd0731
gitbook:generate: cache miss, executing ca5f9eeb90b276d6
gitbook:generate: $ gitbook-icons ./public/~gitbook/static/icons custom-icons && gitbook-math ./public/~gitbook/static/math
@gitbook/icons:build: $ tsc
gitbook:generate: ⚠️ Could not find the Pro kit, using the free kit instead
gitbook:generate: 🚚 Copying icons of styles custom-icons to public\~gitbook\static\icons
gitbook:generate: ❌ Style custom-icons does not exist
gitbook:generate: 🎉 Icons copied to public\~gitbook\static\icons
gitbook:generate: 🎉 MathJaX assets copied to D:\workspace\nextjs\gitbook\packages\gitbook\public\~gitbook\static\math
gitbook:build: cache miss, executing 7afa98aa8ee3437a
gitbook:build: $ next build
gitbook:build:   ▲ Next.js 14.2.5
gitbook:build:
gitbook:build:    Creating an optimized production build ...
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 1%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 2%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 3%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 4%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 5%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 6%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 7%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 8%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 9%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 10%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 11%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 12%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 13%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 14%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 15%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 16%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 17%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 18%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 19%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 20%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 21%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 22%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 23%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 24%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 25%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 26%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 27%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 28%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 29%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 30%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 31%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 32%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 33%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 34%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 35%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 36%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 37%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 38%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 39%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 40%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 41%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 42%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 43%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 44%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 45%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 46%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 47%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 48%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 49%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 50%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 51%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 52%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 53%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 54%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 55%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 56%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 57%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 58%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 59%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 60%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 61%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 62%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 63%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 64%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 65%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 66%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 67%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 68%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 69%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 70%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 71%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 72%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 73%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 74%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 75%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 76%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 77%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 78%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 79%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 80%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 81%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 82%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 83%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 84%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 85%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 86%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 87%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 88%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 89%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 90%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 91%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 92%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 93%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 94%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 95%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 96%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 97%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 98%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 99%
gitbook:build: fetching sentry-cli-Windows-x86_64.exe 100%
gitbook:build: error - No Sentry organization slug configured. Source maps will not be uploaded.
gitbook:build: To fix this, set the SENTRY_ORG environment variable to the to your organization slug during the build.
gitbook:build:
gitbook:build:  ⚠ Compiled with warnings
gitbook:build:
gitbook:build: ../../node_modules/@cloudflare/next-on-pages/dist/api/index.js
gitbook:build: A Node.js API is used (process.release at line: 109) which is not supported in the Edge Runtime.
gitbook:build: Learn more: https://nextjs.org/docs/api-reference/edge-runtime
gitbook:build:
gitbook:build: Import trace for requested module:
gitbook:build: ../../node_modules/@cloudflare/next-on-pages/dist/api/index.js
gitbook:build: ./src/lib/waitUntil.ts
gitbook:build:
gitbook:build: ../../node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js
gitbook:build: A Node.js API is used (process.version at line: 3) which is not supported in the Edge Runtime.
gitbook:build: Learn more: https://nextjs.org/docs/api-reference/edge-runtime
gitbook:build:
gitbook:build: Import trace for requested module:
gitbook:build: ../../node_modules/jsonwebtoken/lib/asymmetricKeyDetailsSupported.js
gitbook:build: ../../node_modules/jsonwebtoken/lib/validateAsymmetricKey.js
gitbook:build: ../../node_modules/jsonwebtoken/sign.js
gitbook:build: ../../node_modules/jsonwebtoken/index.js
gitbook:build:
gitbook:build: ../../node_modules/jsonwebtoken/lib/psSupported.js
gitbook:build: A Node.js API is used (process.version at line: 3) which is not supported in the Edge Runtime.
gitbook:build: Learn more: https://nextjs.org/docs/api-reference/edge-runtime
gitbook:build:
gitbook:build: Import trace for requested module:
gitbook:build: ../../node_modules/jsonwebtoken/lib/psSupported.js
gitbook:build: ../../node_modules/jsonwebtoken/sign.js
gitbook:build: ../../node_modules/jsonwebtoken/index.js
gitbook:build:
gitbook:build: ../../node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js
gitbook:build: A Node.js API is used (process.version at line: 3) which is not supported in the Edge Runtime.
gitbook:build: Learn more: https://nextjs.org/docs/api-reference/edge-runtime
gitbook:build:
gitbook:build: Import trace for requested module:
gitbook:build: ../../node_modules/jsonwebtoken/lib/rsaPssKeyDetailsSupported.js
gitbook:build: ../../node_modules/jsonwebtoken/lib/validateAsymmetricKey.js
gitbook:build: ../../node_modules/jsonwebtoken/sign.js
gitbook:build: ../../node_modules/jsonwebtoken/index.js
gitbook:build:
gitbook:build: ../../node_modules/jws/lib/data-stream.js
gitbook:build: A Node.js API is used (process.nextTick at line: 29) which is not supported in the Edge Runtime.
gitbook:build: Learn more: https://nextjs.org/docs/api-reference/edge-runtime
gitbook:build:
gitbook:build: Import trace for requested module:
gitbook:build: ../../node_modules/jws/lib/data-stream.js
gitbook:build: ../../node_modules/jws/lib/sign-stream.js
gitbook:build: ../../node_modules/jws/index.js
gitbook:build: ../../node_modules/jsonwebtoken/decode.js
gitbook:build: ../../node_modules/jsonwebtoken/index.js
gitbook:build:
gitbook:build:    Linting and checking validity of types ...
gitbook:build: The prop value with an expression type of AwaitExpression could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately.
gitbook:build: The prop value with an expression type of AwaitExpression could not be resolved. Please file an issue ( https://github.com/jsx-eslint/jsx-ast-utils/issues/new ) to get this fixed immediately.
gitbook:build:    Collecting page data ...
gitbook:build:  ⚠ Using edge runtime on a page currently disables static generation for that page
gitbook:build:    Generating static pages (0/3) ...
gitbook:build:  ✓ Generating static pages (3/3)
gitbook:build:    Finalizing page optimization ...
gitbook:build:    Collecting build traces ...
gitbook:build:
gitbook:build: Route (app)                              Size     First Load JS
gitbook:build: ┌ ○ /_not-found                          920 B           108 kB
gitbook:build: ├ ƒ /[[...pathname]]                     8.67 kB         257 kB
gitbook:build: ├ ƒ /~gitbook/icon                       0 B                0 B
gitbook:build: ├ ƒ /~gitbook/image                      0 B                0 B
gitbook:build: ├ ƒ /~gitbook/ogimage/[pageId]           0 B                0 B
gitbook:build: ├ ƒ /~gitbook/pdf                        1.64 kB         251 kB
gitbook:build: ├ ƒ /~gitbook/revalidate                 0 B                0 B
gitbook:build: ├ ƒ /~scalar/proxy                       0 B                0 B
gitbook:build: ├ ƒ /robots.txt                          0 B                0 B
gitbook:build: └ ƒ /sitemap.xml                         0 B                0 B
gitbook:build: + First Load JS shared by all            107 kB
gitbook:build:   ├ chunks/1dd3208c-65f236513d05994f.js  53.7 kB
gitbook:build:   ├ chunks/2632-58a8169263096f76.js      49 kB
gitbook:build:   └ other shared chunks (total)          4.76 kB
gitbook:build:
gitbook:build:
gitbook:build: ƒ Middleware                             103 kB
gitbook:build:
gitbook:build: ○  (Static)   prerendered as static content
gitbook:build: ƒ  (Dynamic)  server-rendered on demand
gitbook:build:

 Tasks:    8 successful, 8 total
Cached:    0 cached, 8 total
  Time:    3m20.999s
addisonschultz commented 1 month ago

Now from the root, can you try bun dev?

anjanesh commented 1 month ago

http://localhost:3000/docs.gitbook.com Internal Server Error

2:06:49 pm - Starting compilation in watch mode...
@gitbook/react-openapi:dev:
@gitbook/react-math:dev:
@gitbook/react-math:dev:
@gitbook/react-math:dev: 2:06:55 pm - Found 0 errors. Watching for file changes.
@gitbook/react-contentkit:dev:
@gitbook/react-contentkit:dev: 2:06:55 pm - Found 0 errors. Watching for file changes.
@gitbook/icons:dev:
@gitbook/icons:dev: 2:06:55 pm - Found 0 errors. Watching for file changes.
@gitbook/react-openapi:dev:
@gitbook/react-openapi:dev: 2:06:58 pm - Found 0 errors. Watching for file changes.
gitbook:dev:   ▲ Next.js 14.2.5
gitbook:dev:   - Local:        http://localhost:3000
gitbook:dev:
gitbook:dev:  ✓ Starting...
gitbook:dev:  ✓ Ready in 10.6s
gitbook:dev:  ○ Compiling /src/middleware ...
gitbook:dev:  ✓ Compiled /src/middleware in 1147ms (390 modules)
gitbook:dev: lookup content for url "https://docs.gitbook.com/", with 1 alternatives
gitbook:dev: trace cache.setCacheEntry(api.getPublishedContentByUrl.v3("https://docs.gitbook.com/",)) 0.7655999999988126ms {}
gitbook:dev: trace cache.revalidate(api.getPublishedContentByUrl.v3("https://docs.gitbook.com/",)) 597.5745000000024ms { cacheTtl: 86340 }
gitbook:dev: cache: api.getPublishedContentByUrl.v3("https://docs.gitbook.com/",) miss in total 601ms, fetch in 599ms, read in 2ms
gitbook:dev: trace cache.get(api.getPublishedContentByUrl.v3("https://docs.gitbook.com/",)) 605.647100000002ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: GET (NkEGS7hzeqa35sMXQZ4X) /
gitbook:dev: trace cache.setCacheEntry(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 0.14150000000518048ms {}
gitbook:dev: trace cache.revalidate(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 440.00910000000295ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSpace("NkEGS7hzeqa35sMXQZ4X",) miss in total 441ms, fetch in 440ms, read in 0ms
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 441.0986000000048ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.setCacheEntry(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 0.12030000000231666ms {}
gitbook:dev: trace cache.revalidate(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 662.3104000000021ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc") miss in total 664ms, fetch in 663ms, read in 1ms
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 664.2497999999978ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.setCacheEntry(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 0.37599999999656575ms {}
gitbook:dev: trace cache.revalidate(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 356.67929999999615ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh") miss in total 358ms, fetch in 357ms, read in 1ms
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 358.6722000000009ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.setCacheEntry(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 0.059300000000803266ms {}
gitbook:dev: trace cache.revalidate(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 411.2387000000017ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4") miss in total 413ms, fetch in 412ms, read in 1ms
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 413.56069999999454ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev:  ○ Compiling /[[...pathname]] ...
gitbook:dev:  ✓ Compiled /[[...pathname]] in 23.8s (8052 modules)
gitbook:dev:  ⨯ Internal error: TypeError: Cannot read properties of undefined (reading 'default')
gitbook:dev:     at resolveClientReference (../../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:87:55)
gitbook:dev:     at resolveModule (../../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:1667:35)
gitbook:dev:     at processFullRow (../../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:1740:25)
gitbook:dev:     at processBinaryChunk (../../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:1858:21)
gitbook:dev:     at progress (../../node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.edge.development.js:1926:17)
gitbook:dev: digest: "1732920403"
gitbook:dev: [TypeError: Cannot read properties of undefined (reading 'default')]
gitbook:dev:  ⨯ [TypeError: Cannot read properties of undefined (reading 'default')]
gitbook:dev:  ⨯ [TypeError: Cannot read properties of null (reading 'default')]
gitbook:dev:  GET /docs.gitbook.com 500 in 27012ms
gitbook:dev: trace cache.setCacheEntry(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 0.6013999999995576ms {}
gitbook:dev: trace cache.revalidate(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 664.854800000001ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4") miss in total 673ms, fetch in 670ms, read in 2ms
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 713.219499999992ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 711.3977999999915ms {}
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 689.3464999999997ms {}
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 678.2065999999904ms {}
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 642.0936999999976ms {}
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 636.8594000000012ms {}
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 558.9428999999946ms {}
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 553.4801999999909ms {}
gitbook:dev: trace cache.setCacheEntry(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 0.06320000000414439ms {}
gitbook:dev: trace cache.revalidate(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 671.7161999999953ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X") miss in total 678ms, fetch in 676ms, read in 2ms
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 718.5991999999969ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 694.1281999999919ms {}
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 646.6110999999946ms {}
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 641.1114999999991ms {}
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 563.1042000000016ms {}
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 557.6094000000012ms {}
gitbook:dev: trace cache.setCacheEntry(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 0.05930000000807922ms {}
gitbook:dev: trace cache.revalidate(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 684.6769000000058ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh") miss in total 691ms, fetch in 689ms, read in 2ms
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 730.9315999999963ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 728.5495000000083ms {}
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 706.2397999999957ms {}
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 694.9965000000084ms {}
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 658.8008000000118ms {}
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 653.2497000000003ms {}
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 575.1916000000056ms {}
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 569.6537000000098ms {}
gitbook:dev: trace cache.setCacheEntry(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 0.07589999999618158ms {}
gitbook:dev: trace cache.revalidate(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 693.9032000000007ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X") miss in total 699ms, fetch in 697ms, read in 2ms
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 739.8293999999878ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 715.0430000000051ms {}
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 667.2419000000082ms {}
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 661.6735000000044ms {}
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 583.6079000000027ms {}
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 578.063599999994ms {}
gitbook:dev: trace cache.setCacheEntry(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 0.09419999999227002ms {}
gitbook:dev: trace cache.revalidate(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 693.7273999999888ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4") miss in total 700ms, fetch in 698ms, read in 2ms
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 715.3435000000027ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 668.3162999999913ms {}
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 584.6894999999931ms {}
gitbook:dev: trace cache.setCacheEntry(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 0.06560000000172295ms {}
gitbook:dev: trace cache.revalidate(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 700.1967000000004ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSpace("NkEGS7hzeqa35sMXQZ4X",) miss in total 703ms, fetch in 701ms, read in 2ms
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 743.8466999999946ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 718.4924000000028ms {}
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 670.619200000001ms {}
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 665.0475000000006ms {}
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 586.9940999999963ms {}
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 581.4543000000122ms {}
gitbook:dev: trace cache.setCacheEntry(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 0.05100000000675209ms {}
gitbook:dev: trace cache.revalidate(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 699.1372999999876ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b) miss in total 706ms, fetch in 704ms, read in 2ms
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 711.6783999999898ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 669.805600000007ms {}
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 585.7725999999966ms {}
gitbook:dev:  ✓ Compiled in 3.9s (2654 modules)
gitbook:dev: trace cache.setCacheEntry(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 0.1824999999953434ms {}
gitbook:dev: trace cache.revalidate(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 883.0970000000088ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc") miss in total 884ms, fetch in 883ms, read in 0ms
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 884.3867000000027ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 884.4225000000006ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 884.4223999999958ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 884.4039000000048ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 884.3892999999953ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 884.3524000000034ms {}
gitbook:dev: cache: api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4") hit on memory in total 0ms, fetch in 0ms, read in 0ms
gitbook:dev: cache: api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b) hit on memory in total 0ms, fetch in 0ms, read in 0ms
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 16.934800000002724ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 10.272899999996298ms {}
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 5.977499999993597ms {}
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 10.545700000002398ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 6.295699999987846ms {}
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 2.4037000000098487ms {}
gitbook:dev: trace cache.setCacheEntry(api.getDocument.v2("NkEGS7hzeqa35sMXQZ4X","HQB5X0T8KP9wj1zATrLM")) 0.13680000000749715ms {}
gitbook:dev: trace cache.revalidate(api.getDocument.v2("NkEGS7hzeqa35sMXQZ4X","HQB5X0T8KP9wj1zATrLM")) 382.47690000000875ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getDocument.v2("NkEGS7hzeqa35sMXQZ4X","HQB5X0T8KP9wj1zATrLM") miss in total 384ms, fetch in 383ms, read in 1ms
gitbook:dev: trace cache.get(api.getDocument.v2("NkEGS7hzeqa35sMXQZ4X","HQB5X0T8KP9wj1zATrLM")) 393.85340000000724ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getDocument.v2("NkEGS7hzeqa35sMXQZ4X","HQB5X0T8KP9wj1zATrLM")) 389.73189999999886ms {}
gitbook:dev: trace cache.get(api.getDocument.v2("NkEGS7hzeqa35sMXQZ4X","HQB5X0T8KP9wj1zATrLM")) 385.8777000000118ms {}
gitbook:dev: cache: api.getSpace("NkEGS7hzeqa35sMXQZ4X",) hit on memory in total 0ms, fetch in 0ms, read in 0ms
gitbook:dev: cache: api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X") hit on memory in total 1ms, fetch in 0ms, read in 0ms
gitbook:dev: cache: api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X") hit on memory in total 1ms, fetch in 0ms, read in 1ms
gitbook:dev: cache: api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh") hit on memory in total 1ms, fetch in 0ms, read in 1ms
gitbook:dev: cache: api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4") hit on memory in total 1ms, fetch in 0ms, read in 1ms
gitbook:dev: cache: api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4") hit on memory in total 1ms, fetch in 0ms, read in 1ms
gitbook:dev: cache: api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b) hit on memory in total 1ms, fetch in 0ms, read in 1ms
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 12.12829999999667ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 7.273499999995693ms {}
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 6.456600000004983ms {}
gitbook:dev: trace cache.get(api.getSpace("NkEGS7hzeqa35sMXQZ4X",)) 2.5601000000024214ms {}
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 12.258300000001327ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 7.39100000000326ms {}
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 6.556400000001304ms {}
gitbook:dev: trace cache.get(api.getSpaceCustomization("NkEGS7hzeqa35sMXQZ4X")) 2.5596000000077765ms {}
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 12.334199999997509ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 7.4368000000104075ms {}
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 6.612299999993411ms {}
gitbook:dev: trace cache.get(api.getSpaceIntegrationScripts("NkEGS7hzeqa35sMXQZ4X")) 2.593799999987823ms {}
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 12.358200000002398ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 7.475500000000466ms {}
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 6.6502999999938766ms {}
gitbook:dev: trace cache.get(api.getSiteSpaceCustomizationById("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4","sitesp_oiFXh")) 2.2744000000093365ms {}
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 12.421199999997043ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 7.495599999994738ms {}
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 6.714099999997416ms {}
gitbook:dev: trace cache.get(api.getSiteIntegrationScripts("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 1.641699999992852ms {}
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 12.43630000000121ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 6.724800000010873ms {}
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 8.424799999993411ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 3.579599999997299ms {}
gitbook:dev: cache: api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc") hit on memory in total 0ms, fetch in 0ms, read in 0ms
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 0.9766999999992549ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 0.8755999999993946ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 0.804100000008475ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 0.7020999999949709ms {}
gitbook:dev: cache: api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4") hit on memory in total 0ms, fetch in 0ms, read in 0ms
gitbook:dev: cache: api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b) hit on memory in total 0ms, fetch in 0ms, read in 0ms
gitbook:dev: cache: api.getDocument.v2("NkEGS7hzeqa35sMXQZ4X","HQB5X0T8KP9wj1zATrLM") hit on memory in total 0ms, fetch in 0ms, read in 0ms
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 9.072100000004866ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSite("d8f63b60-89ae-11e7-8574-5927d48c4877","site_p4Xo4")) 5.112200000003213ms {}
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 5.26950000000943ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSiteSpaces(0be6a4f612a0b0fbbadd02e95fdafaa5f3a5253b)) 2.237299999993411ms {}
gitbook:dev: trace cache.get(api.getDocument.v2("NkEGS7hzeqa35sMXQZ4X","HQB5X0T8KP9wj1zATrLM")) 5.272500000006403ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getDocument.v2("NkEGS7hzeqa35sMXQZ4X","HQB5X0T8KP9wj1zATrLM")) 2.248300000006566ms {}
gitbook:dev: trace cache.setCacheEntry(api.getRevisionAllFiles.v2("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 0.10069999999541324ms {}
gitbook:dev: trace cache.revalidate(api.getRevisionAllFiles.v2("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 1251.0957000000053ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getRevisionAllFiles.v2("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc") miss in total 1252ms, fetch in 1251ms, read in 1ms
gitbook:dev: trace cache.get(api.getRevisionAllFiles.v2("NkEGS7hzeqa35sMXQZ4X","xpJ9tfZCGrLR3LMGmcGc")) 1252.335300000006ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
addisonschultz commented 1 month ago

And last but not least - can you also verify you are using the correct node version with nvm use?

anjanesh commented 1 month ago

nvm current is v20.17.0 - do I need to fall back to 18 ?

anjanesh commented 1 month ago

nvm use 18 - bun dev also raises "Internal Server Error"

addisonschultz commented 1 month ago

The node version in this project is v20.6.1 - can you try this one please?

Henalexandre commented 1 month ago

If you just type nvm use, without specifying any version number, it should load the correct nvm version that is written in the project .nvmrc file (aka 20.6.1).

The workaround worked for me, thanks @addisonschultz!

anjanesh commented 1 month ago
PS D:\workspace\nextjs\gitbook> nvm use
A version argument is required but missing.
PS D:\workspace\nextjs\gitbook> nvm use 20.6.1
Now using node v20.6.1 (64-bit)

But I still get "Internal Server Error" on my work Windows 11 machine. I'll try on my macOS at home later today.

The workaround worked for me

Can you specify your machine specs ?

Henalexandre commented 1 month ago

macOS 15 using node v20.6.1 (npm v9.8.1)

anjanesh commented 1 month ago

Thanks - what do you see when you goto http://localhost:3000/docs.gitbook.com ? (screenshot ?)

addisonschultz commented 1 month ago

You will see a local running version of https://docs.gitbook.com/

anjanesh commented 1 month ago

Got it working via WSL (Ubuntu 20.04) on Windows 11. Didn't have to : In packages/icons/dist can you add a folder called data? And then try to run npm run build again? Port forwarded 3000 Can see the page. Thanks again.

addisonschultz commented 1 month ago

Awesome it's working now - We're working on updating the build process so this step isn't needed - it's from a new feature that wasn't included in the new build process, so apologies in advance for this!