Errors running on windows.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 29k
- Forks
- 4k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 71
Description
Bug description
I'm trying to get up and running on windows and running into the following issues.
Running bun dev, first I get:
gitbook-v2:generate: $ rm -rf ./public && cp -r ../gitbook/public ./public
gitbook-v2:generate: cp: illegal option -- r
This is fixed by replacing -r with -R. See https://github.com/oven-sh/bun/issues/14595
After fixing that the server starts up and I try http://localhost:3000/open-source.gitbook.io/midjourney
which gives:
gitbook:dev: trace cloudflareDO.get(api.getPublishedContentByUrl.v4("https://open-source.gitbook.io/midjourney",,)) 0.27669999999852735ms {}
gitbook:dev: trace cloudflareDO.set(api.getPublishedContentByUrl.v4("https://open-source.gitbook.io/midjourney",,)) 0.07270000000062282ms {}
gitbook:dev: trace cache.setCacheEntry(api.getPublishedContentByUrl.v4("https://open-source.gitbook.io/midjourney",,)) 0.4372000000003027ms {}
gitbook:dev: trace cache.revalidate(api.getPublishedContentByUrl.v4("https://open-source.gitbook.io/midjourney",,)) 282.4233999999997ms { cacheTtl: 86340 }
gitbook:dev: cache: api.getPublishedContentByUrl.v4("https://open-source.gitbook.io/midjourney",,) miss in total 285ms, fetch in 283ms, read in 2ms
gitbook:dev: trace cache.get(api.getPublishedContentByUrl.v4("https://open-source.gitbook.io/midjourney",,)) 285.9425999999985ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: ○ Compiling /middleware/[[...pathname]] ...
gitbook:dev: ✓ Compiled /middleware/[[...pathname]] in 16.8s (12339 modules)
gitbook:dev: trace cloudflareDO.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 0.4481999999989057ms {}
gitbook:dev: trace cloudflareDO.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 0.2742999999973108ms {}
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: at runNextTicks (node:internal/process/task_queues:60:5)
gitbook:dev: at process.processTimers (node:internal/timers:516:9)
gitbook:dev: digest: "1164183353"
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 /open-source.gitbook.io/midjourney 500 in 19101ms
gitbook:dev: trace cloudflareDO.set(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 0.141299999995681ms {}
gitbook:dev: trace cache.setCacheEntry(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 0.5934999999954016ms {}
gitbook:dev: trace cache.revalidate(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 836.9876000000004ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getSpace("23VFvsTwDBajtbv2pXl3",) miss in total 848ms, fetch in 838ms, read in 10ms
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 851.383600000001ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 851.2314000000042ms {}
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 851.0966000000044ms {}
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 818.5555999999997ms {}
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 818.489999999998ms {}
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 741.0285000000003ms {}
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 740.7721999999994ms {}
gitbook:dev: trace cloudflareDO.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 0.07609999999840511ms {}
gitbook:dev: trace cloudflareDO.set(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 0.07259999999951106ms {}
gitbook:dev: trace cache.setCacheEntry(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 0.3117000000056578ms {}
gitbook:dev: trace cache.revalidate(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 844.9405999999944ms { cacheTtl: 86400 }
gitbook:dev: cache: api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7) miss in total 850ms, fetch in 846ms, read in 4ms
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 852.723699999995ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 851.6609000000026ms {}
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 850.4435000000012ms {}
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 826.1804000000047ms {}
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 825.6508000000031ms {}
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 747.321100000001ms {}
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 746.2059999999983ms {}
gitbook:dev: trace cloudflareDO.set(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 0.0415999999968335ms {}
gitbook:dev: trace cache.setCacheEntry(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 0.18269999999756692ms {}
gitbook:dev: trace cache.revalidate(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 731.3784000000014ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp") miss in total 733ms, fetch in 732ms, read in 1ms
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 733.5507999999973ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 733.5180000000037ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 733.4613000000027ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 733.4024999999965ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 733.2383000000045ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 733.1669000000038ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 733.0708999999988ms {}
gitbook:dev: cache: api.getSpace("23VFvsTwDBajtbv2pXl3",) hit on memory in total 2ms, fetch in 0ms, read in 2ms
gitbook:dev: cache: api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7) hit on memory in total 0ms, fetch in 0ms, read in 0ms
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 2.819599999995262ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 2.737700000005134ms {}
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 2.6042000000015832ms {}
gitbook:dev: trace cache.get(api.getSpace("23VFvsTwDBajtbv2pXl3",)) 2.476699999999255ms {}
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 1.5368999999991502ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 1.0911999999952968ms {}
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 0.7117999999973108ms {}
gitbook:dev: trace cache.get(api.getPublishedContentSite(b14497cb0e78bbdb553258909a9d0e4b0ec7b0e7)) 0.4081000000005588ms {}
gitbook:dev: cache: api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp") hit on memory in total 0ms, fetch in 0ms, read in 0ms
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 0.19549999999435386ms { memory: true, cacheBackend: 'memory', cacheStatus: 'hit' }
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 0.19649999999819556ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 0.18130000000383006ms {}
gitbook:dev: trace cache.get(api.getRevisionPages.v4("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp")) 0.16389999999955762ms {}
gitbook:dev: trace cloudflareDO.get(api.getDocument.v2("23VFvsTwDBajtbv2pXl3","RwSpzFD1bLSKVCSw1igt")) 0.03160000000207219ms {}
gitbook:dev: ✓ Compiled in 1633ms (4497 modules)
gitbook:dev: trace cloudflareDO.set(api.getDocument.v2("23VFvsTwDBajtbv2pXl3","RwSpzFD1bLSKVCSw1igt")) 0.07499999999708962ms {}
gitbook:dev: trace cache.setCacheEntry(api.getDocument.v2("23VFvsTwDBajtbv2pXl3","RwSpzFD1bLSKVCSw1igt")) 0.4055000000007567ms {}
gitbook:dev: trace cache.revalidate(api.getDocument.v2("23VFvsTwDBajtbv2pXl3","RwSpzFD1bLSKVCSw1igt")) 169.10570000000007ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getDocument.v2("23VFvsTwDBajtbv2pXl3","RwSpzFD1bLSKVCSw1igt") miss in total 170ms, fetch in 169ms, read in 0ms
gitbook:dev: trace cache.get(api.getDocument.v2("23VFvsTwDBajtbv2pXl3","RwSpzFD1bLSKVCSw1igt")) 169.94919999999547ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cloudflareDO.get(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","0BJ2vGTvJXehXDO1L1o2")) 0.6832999999969616ms {}
gitbook:dev: trace cloudflareDO.get(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","SXyJHhb12EGeUxdqRrig")) 0.6378999999942607ms {}
gitbook:dev: trace cloudflareDO.get(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","fWoZgWVagS3mius5YQV8")) 0.486799999998766ms {}
gitbook:dev: trace cloudflareDO.get(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","ew2zc2TaMBrSqqgZiJv8")) 0.3694000000032247ms {}
gitbook:dev: trace cloudflareDO.set(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","SXyJHhb12EGeUxdqRrig")) 0.0644999999931315ms {}
gitbook:dev: trace cache.setCacheEntry(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","SXyJHhb12EGeUxdqRrig")) 0.26759999999922ms {}
gitbook:dev: trace cache.revalidate(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","SXyJHhb12EGeUxdqRrig")) 156.29750000000058ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","SXyJHhb12EGeUxdqRrig") miss in total 158ms, fetch in 157ms, read in 1ms
gitbook:dev: trace cache.get(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","SXyJHhb12EGeUxdqRrig")) 158.61149999999907ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cloudflareDO.set(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","0BJ2vGTvJXehXDO1L1o2")) 0.05049999999755528ms {}
gitbook:dev: trace cache.setCacheEntry(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","0BJ2vGTvJXehXDO1L1o2")) 0.18950000000040745ms {}
gitbook:dev: trace cache.revalidate(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","0BJ2vGTvJXehXDO1L1o2")) 157.51620000000548ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","0BJ2vGTvJXehXDO1L1o2") miss in total 159ms, fetch in 158ms, read in 1ms
gitbook:dev: trace cache.get(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","0BJ2vGTvJXehXDO1L1o2")) 159.81179999999586ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cloudflareDO.set(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","fWoZgWVagS3mius5YQV8")) 0.055899999999383ms {}
gitbook:dev: trace cache.setCacheEntry(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","fWoZgWVagS3mius5YQV8")) 0.23810000000230502ms {}
gitbook:dev: trace cache.revalidate(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","fWoZgWVagS3mius5YQV8")) 202.92139999999927ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","fWoZgWVagS3mius5YQV8") miss in total 205ms, fetch in 203ms, read in 1ms
gitbook:dev: trace cache.get(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","fWoZgWVagS3mius5YQV8")) 205.20980000000418ms { cacheBackend: 'fetch', cacheStatus: 'miss' }
gitbook:dev: trace cloudflareDO.set(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","ew2zc2TaMBrSqqgZiJv8")) 0.06999999999970896ms {}
gitbook:dev: trace cache.setCacheEntry(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","ew2zc2TaMBrSqqgZiJv8")) 0.29170000000158325ms {}
gitbook:dev: trace cache.revalidate(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","ew2zc2TaMBrSqqgZiJv8")) 207.03620000000228ms { cacheTtl: 604800 }
gitbook:dev: cache: api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","ew2zc2TaMBrSqqgZiJv8") miss in total 209ms, fetch in 208ms, read in 1ms
gitbook:dev: trace cache.get(api.getRevisionFile.v3("23VFvsTwDBajtbv2pXl3","QY9tI0AzFveCjsW6eNCp","ew2zc2TaMBrSqqgZiJv8")) 209.41470000000118ms { cacheBackend: 'fetch', cacheStatus: 'miss'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing bun dev on Windows, including the cp failure in the generate step and the later 500 response for /open-source.gitbook.io/midjourney. Trace the development-server path around the reported Next.js error and verify that the Windows startup completes and the page loads without an internal error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bun, next.js, typescript
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100