Next.js Discord

Discord Forum

dynamic import component keep getting Error: next/dynamic

Unanswered
Fire ant posted this in #help-forum
Open in Discord
Fire antOP
After updating to canary 14.0.5-52 i got this Error: next/dynamic on dev, turbo and build failed

canary 14.0.5-41 has no error next dynamic on dev and turbo and build succeed

Didnt change any code, just updating to latest canary

Latest canary build 14.0.5-52 got

Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: e[o] is not a function
    at t (\nextjs\.next\server\webpack-runtime.js:1:127)
    at F (\nextjs\node_modules\.pnpm\next@14.0.5-canary.52_react-dom@18.2.0_react@18.2.0\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:94459)
    at j (\nextjs\node_modules\.pnpm\next@14.0.5-canary.52_react-dom@18.2.0_react@18.2.0\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:93010)
    at rR (\nextjs\node_modules\.pnpm\next@14.0.5-canary.52_react-dom@18.2.0_react@18.2.0\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:33844)
    at nN (\nextjs\node_modules\.pnpm\next@14.0.5-canary.52_react-dom@18.2.0_react@18.2.0\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:62354)
    at nF (\nextjs\node_modules\.pnpm\next@14.0.5-canary.52_react-dom@18.2.0_react@18.2.0\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:67439)
    at nL (\nextjs\node_modules\.pnpm\next@14.0.5-canary.52_react-dom@18.2.0_react@18.2.0\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:66755)
    at nN (\nextjs\node_modules\.pnpm\next@14.0.5-canary.52_react-dom@18.2.0_react@18.2.0\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:64921)
    at nF (\nextjs\node_modules\.pnpm\next@14.0.5-canary.52_react-dom@18.2.0_react@18.2.0\node_modules\next\dist\compiled\next-server\app-page.runtime.prod.js:12:67439)


Even i dont know where to check the files for error

0 Replies