fuma-nama / fumadocs

The powerful framework for building documentation sites in Next.js.
https://fumadocs.vercel.app
MIT License
906 stars 50 forks source link

DynamicSidebar is not defined #559

Open changeelog opened 4 days ago

changeelog commented 4 days ago

To Reproduce

  1. Clone the fork https://github.com/changeelog/fumadocs
  2. Install + build deps
  3. Run dev server and go to any /docs page

Current vs. Expected behavior

Curr: Breaks due to a missing import error Expected: Work correctly

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Home
  Available memory (MB): 7992
  Available CPU cores: 4
Binaries:
  Node: 21.6.1
  npm: N/A
  Yarn: N/A
  pnpm: 8.15.1
Relevant Packages:
  next: 14.2.4 // Latest available version is detected (14.2.4).
  eslint-config-next: N/A
  react: 18.3.1
  react-dom: 18.3.1
  typescript: N/A
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Not sure, Core

Additional context

The thing on the screenshot below refers us here:

Screenshot_2

https://github.com/fuma-nama/fumadocs/blob/996af262e2d8ecc9deb2e2b6ddcf3d46759a66f1/packages/ui/src/layout.tsx#L159

Seems like those imports are not included by the bundle. For reference take a look at nav declaration

image

And it has its own import right there but we dont have such thing for all this components TreeContextProvider, DynamicSidebar, SubNav, LinksMenu, Sidebar, ThemeToggle

image

VSCode IntelliSense also has something to say

image

fuma-nama commented 3 days ago

That's weird, after bundling packages, it should do a trick to inject imports of client components to the output. Is there any errors when build the packages?

changeelog commented 3 days ago

No, it bundles perflectly fine, and I get no errors while navigating through index page, but when I come to /docs/anything - I get this

changeelog commented 3 days ago

Hold up, I've build once again and got this. As far as I remember .pid are Linux thingy mainly, tried to open it seems to have no readable/useful info

image

Also now during the second build it errors the thing

image

I'ma dig into rn, play with verbosity etc

UPD: I've ran turbo clean to clean the cache then ran turbo run build --output-logs errors-only to show only errors in logs and got this:

example-next-mdx:build: cache miss, executing fad98614c5105ecd
example-next-mdx:build: 
example-next-mdx:build: > example-next-mdx@0.0.0 build D:\x\fumadocs\examples\next-mdx
example-next-mdx:build: > next build
example-next-mdx:build: 
example-next-mdx:build:   ▲ Next.js 14.2.4
example-next-mdx:build: 
example-next-mdx:build:    Creating an optimized production build ...
example-next-mdx:build:  ✓ Compiled successfully
example-next-mdx:build:    Linting and checking validity of types ...
example-next-mdx:build:    Collecting page data ...
example-next-mdx:build:    Generating static pages (0/7) ...
example-next-mdx:build: ReferenceError: DynamicSidebar is not defined
example-next-mdx:build:     at p (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:21:1262)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135299)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at Array.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-next-mdx:build:     at stringify (<anonymous>)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219) {
example-next-mdx:build:   digest: '3738755007'
example-next-mdx:build: }
example-next-mdx:build: ReferenceError: DynamicSidebar is not defined
example-next-mdx:build:     at p (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:21:1262)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135299)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at Array.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-next-mdx:build:     at stringify (<anonymous>)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219) {
example-next-mdx:build:   digest: '3738755007'
example-next-mdx:build: }
example-next-mdx:build: ReferenceError: TocProvider is not defined
example-next-mdx:build:     at l (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:16:13560)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138213)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142124)
example-next-mdx:build:     at eE (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142698)
example-next-mdx:build:     at Timeout._onTimeout (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135475)
example-next-mdx:build:     at listOnTimeout (node:internal/timers:573:17)
example-next-mdx:build:     at process.processTimers (node:internal/timers:514:7) {
example-next-mdx:build:   digest: '1599163431'
example-next-mdx:build: }
example-next-mdx:build: ReferenceError: TocProvider is not defined
example-next-mdx:build:     at l (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:16:13560)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138213)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142124)
example-next-mdx:build:     at eE (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142698)
example-next-mdx:build:     at Timeout._onTimeout (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135475)
example-next-mdx:build:     at listOnTimeout (node:internal/timers:573:17)
example-next-mdx:build:     at process.processTimers (node:internal/timers:514:7) {
example-next-mdx:build:   digest: '1599163431'
example-next-mdx:build: }
example-next-mdx:build: ReferenceError: DynamicSidebar is not defined
example-next-mdx:build:     at p (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:21:1262)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135299)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at Array.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-next-mdx:build:     at stringify (<anonymous>)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219) {
example-next-mdx:build:   digest: '3738755007'
example-next-mdx:build: }
example-next-mdx:build: 
example-next-mdx:build: Error occurred prerendering page "/docs". Read more: https://nextjs.org/docs/messages/prerender-error
example-next-mdx:build: 
example-next-mdx:build: ReferenceError: DynamicSidebar is not defined
example-next-mdx:build:     at p (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:21:1262)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135299)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at Array.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-next-mdx:build:     at stringify (<anonymous>)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219)
example-next-mdx:build:    Generating static pages (1/7)
example-next-mdx:build:    Generating static pages (3/7)
example-next-mdx:build: ReferenceError: DynamicSidebar is not defined
example-next-mdx:build:    Generating static pages (5/7)
example-next-mdx:build:     at p (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:21:1262)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135299)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at Array.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-next-mdx:build:     at stringify (<anonymous>)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219) {
example-next-mdx:build:   digest: '3738755007'
example-next-mdx:build: }
example-next-mdx:build: ReferenceError: DynamicSidebar is not defined
example-next-mdx:build:     at p (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:21:1262)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135299)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at Array.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-next-mdx:build:     at stringify (<anonymous>)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219) {
example-next-mdx:build:   digest: '3738755007'
example-next-mdx:build: }
example-next-mdx:build: ReferenceError: TocProvider is not defined
example-next-mdx:build:     at l (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:16:13560)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138213)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142124)
example-next-mdx:build:     at eE (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142698)
example-next-mdx:build:     at Timeout._onTimeout (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135475)
example-next-mdx:build:     at listOnTimeout (node:internal/timers:573:17)
example-next-mdx:build:     at process.processTimers (node:internal/timers:514:7) {
example-next-mdx:build:   digest: '1599163431'
example-next-mdx:build: }
example-next-mdx:build: ReferenceError: TocProvider is not defined
example-next-mdx:build:     at l (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:16:13560)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138213)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142124)
example-next-mdx:build:     at eE (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142698)
example-next-mdx:build:     at Timeout._onTimeout (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135475)
example-next-mdx:build:     at listOnTimeout (node:internal/timers:573:17)
example-next-mdx:build:     at process.processTimers (node:internal/timers:514:7) {
example-next-mdx:build:   digest: '1599163431'
example-next-mdx:build: }
example-next-mdx:build: ReferenceError: DynamicSidebar is not defined
example-next-mdx:build:     at p (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:21:1262)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135299)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at Array.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-next-mdx:build:     at stringify (<anonymous>)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219) {
example-next-mdx:build:   digest: '3738755007'
example-next-mdx:build: }
example-next-mdx:build: 
example-next-mdx:build: Error occurred prerendering page "/docs/test". Read more: https://nextjs.org/docs/messages/prerender-error
example-next-mdx:build: 
example-next-mdx:build: ReferenceError: DynamicSidebar is not defined
example-next-mdx:build:     at p (D:\x\fumadocs\examples\next-mdx\.next\server\app\docs\[[...slug]]\page.js:21:1262)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135299)
example-next-mdx:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-next-mdx:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-next-mdx:build:     at Array.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-next-mdx:build:     at stringify (<anonymous>)
example-next-mdx:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219)
example-next-mdx:build:  ✓ Generating static pages (7/7)
example-next-mdx:build: 
example-next-mdx:build: > Export encountered errors on following paths:
example-next-mdx:build:         /docs/[[...slug]]/page: /docs
example-next-mdx:build:         /docs/[[...slug]]/page: /docs/test
example-next-mdx:build:  ELIFECYCLE  Command failed with exit code 1.
example-next-mdx:build: ERROR: command finished with error: command (D:\x\fumadocs\examples\next-mdx) C:\Users\женя\AppData\Roaming\npm\pnpm.cmd run build exited (1)
example-next-mdx#build: command (D:\x\fumadocs\examples\next-mdx) C:\Users\женя\AppData\Roaming\npm\pnpm.cmd run build exited (1)

 Tasks:    10 successful, 15 total
Cached:    10 cached, 15 total
  Time:    53.655s 
Failed:    example-next-mdx#build

 ERROR  run failed: command  exited (1)
changeelog commented 3 days ago

At this point I have no clue, bundler related problems (if this is one of them) are so painful to solve. Is it possible to include this in the chunk via tsup configuration or are there any other steps I could perform to give more info about this?

UPD: Ran the same command as in previous comment but set the verbosity level at 2, it gave more info (most of it is just "more informative" duplicate of what is in the previous comment) about where the error occur with some weird lines like this:

example-i18n:build: ReferenceError: DynamicSidebar is not defined
example-i18n:build:     at E (D:\x\fumadocs\examples\i18n\.next\server\app\[lang]\[[...slug]]\page.js:21:1262)
example-i18n:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-i18n:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-i18n:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-i18n:build:     at Object.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-i18n:build:     at stringify (<anonymous>)
example-i18n:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219)
example-i18n:build:     at eE (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142698)
example-i18n:build:     at Timeout._onTimeout (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135475)
example-i18n:build:     at listOnTimeout (node:internal/timers:573:17) {
example-i18n:build:   digest: '3619734312'
example-i18n:build: }
example-i18n:build: 
example-i18n:build: Error occurred prerendering page "/cn/test". Read more: https://nextjs.org/docs/messages/prerender-error
example-i18n:build: 
example-i18n:build: ReferenceError: DynamicSidebar is not defined
example-i18n:build:     at E (D:\x\fumadocs\examples\i18n\.next\server\app\[lang]\[[...slug]]\page.js:21:1262)
example-i18n:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-i18n:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-i18n:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-i18n:build:     at Object.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-i18n:build:     at stringify (<anonymous>)
example-i18n:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219)
example-i18n:build:     at eE (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142698)
example-i18n:build:     at AsyncLocalStorage.run (node:async_hooks:346:14)
example-i18n:build:     at Timeout._onTimeout (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:150397)
example-i18n:build: 
example-i18n:build: Error occurred prerendering page "/en/test". Read more: https://nextjs.org/docs/messages/prerender-error
example-i18n:build: 
example-i18n:build: ReferenceError: DynamicSidebar is not defined
example-i18n:build:     at E (D:\x\fumadocs\examples\i18n\.next\server\app\[lang]\[[...slug]]\page.js:21:1262)
example-i18n:build:     at eh (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:134786)
example-i18n:build:     at e (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:137671)
example-i18n:build:     at ek (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:138145)
example-i18n:build:     at Object.toJSON (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:135755)
example-i18n:build:     at stringify (<anonymous>)
example-i18n:build:     at eP (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142219)
example-i18n:build:     at eE (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:142698)
example-i18n:build:     at AsyncLocalStorage.run (node:async_hooks:346:14)
example-i18n:build:     at Timeout._onTimeout (D:\x\fumadocs\node_modules\.pnpm\next@14.2.4_@babel+core@7.24.0_@opentelemetry+api@1.9.0_react-dom@18.3.1_react@18.3.1__react@18.3.1\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:150397)
example-i18n:build: 
example-i18n:build: > Export encountered errors on following paths:
example-i18n:build:     /[lang]/[[...slug]]/page: /cn
example-i18n:build:     /[lang]/[[...slug]]/page: /cn/test
example-i18n:build:     /[lang]/[[...slug]]/page: /en
example-i18n:build:     /[lang]/[[...slug]]/page: /en/test
example-i18n:build:  ELIFECYCLE  Command failed with exit code 1.
2024-07-03T05:33:39.141+0300 [DEBUG] turborepo_ui::logs: finish replaying logs
fuma-nama commented 3 days ago

image

Can you see this in the build output of Fumadocs UI? Running pnpm clean && pnpm build ./packages/* should give this result, which is injected by our custom script

changeelog commented 3 days ago

image

Can you see this in the build output of Fumadocs UI? Running pnpm clean && pnpm build ./packages/* should give this result, which is injected by our custom script

I don't have those lines for some reason

image

changeelog commented 3 days ago

this is weird, but adding this lines manually

For layout.js

import {
  TreeContextProvider,
  DynamicSidebar,
  SubNav,
  LinksMenu,
  Sidebar,
  ThemeToggle,
} from './docs.client';

And this for page.js

import {
  TocProvider,
  TocPopover,
  Breadcrumb,
  LastUpdate,
  Footer,
  Toc,
} from './page.client';

It solved the issue, anyways this is so weird

fuma-nama commented 2 days ago

Yes and this should be generated by the custom script in tsup configuration, I am honestly not sure about the actual problem, hope it's related to Node.js versions or file system.

fuma-nama commented 2 days ago

I'm developing this project on my windows 11 PC and MacBook, it should work on windows system

changeelog commented 1 day ago

I'm developing this project on my windows 11 PC and MacBook, it should work on windows system

I don't think it's about the OS, in general there shouldn't be anything so special about the OS specifically that would break the behavior.

I have a Win 10 on my machine, but the only problems I've had are with paths (sometimes Cyrillic names don't want to be interpreted correctly)

Seems like a weird caching issue to me, I have no clue how to prove that tho. Tried using --force option to ignore existing cached artifacts and re-execute all tasks, yet the behavior is still the same

I'll search through existing issues for other bundlers regarding the problem, see if I can find anything this night.

UPD: I've searched a lot of issues about this, maybe this one will be helpful cause for me it's somewhat close and related to the issue

I know the guy here is talking about Vite, but here's the catch, this is what tsup docs page say:

image

Soo, maybe this is the thing?

fuma-nama commented 13 hours ago

it's about the tsup.config.ts file, we added a script after build successful to inject imports for client components. It should be executed after successful compilation, can you do some debug on your side?