-
Notifications
You must be signed in to change notification settings - Fork 27.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEXT-1092] next build
compile error regarding export worker
#49059
Comments
It also seems to go away when you put |
I'm having the same issue |
I'm also having the same issue. |
In my case, fixing my
Doc: https://beta.nextjs.org/docs/api-reference/generate-static-params Initially I had incorrect values in |
@rjruizes This is definitely the root cause for the error in my case, yesterday I moved the files one at a time to a new project and discovered it. Thank you! |
I just discovered that in my case everytime I add a folder estructure like /dashboard/admin/companies/[id] the error pops up |
Same issue from me. Unable to use build / export whilst using a dyanmic route and client side component. Error: invariant: Undefined export worker for app dir, this is a bug in Next.js. |
I stoped using the last version of nextjs 13 with the experimental app directory and changed it to a project without app and src directory and the build was successfully made |
next build
compile error regarding export workernext build
compile error regarding export worker
I am also facing the same issue with Next 13.4.1. The document suggests But is there an option to make it dynamic if I don't know the The answer to this question is to export the component as a client component as discussed here: https://nextjs.org/docs/app/building-your-application/deploying/static-exports#dynamic-fetching-with-client-components But even if I export it as a client component, I still get this error. |
The same issue is occurring for me on 13.4.1 but I am doing nothing with params or dynamic routing atm. Only one server side fetch going on and its happening so something else perhaps causing it. |
I have this issue as well. Simple reproduction repo: https://codesandbox.io/p/sandbox/hardcore-lehmann-w4hd2f just run If I just move the If I want to run the app in development mode however I need to have the ContextI am moving an existing CRA project over to Next. I have set up the
I am trying to build it as a SPA using the The build fails and the Error
Setup info
|
+1 getting this error on
MCVE: https://github.com/jayalmaraz/20230508-next-13-app-router-static-export-bug Obviously
|
This is fixed on the canary channel. You can try it today with |
@styfle i just tried it on |
Works fine for me |
@Yehorchik You might have a different issue. See #48022 @ytsruh Thanks for confirming 👍 |
@styfle thanks |
Thanks, this worked |
Also confirmed the fix, thanks. |
confirmed fixed in |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Package manager (npm, pnpm, Yarn), Static HTML Export (output: "export")
Link to the code that reproduces this issue
https://github.com/Kazzuk/reproduce
To Reproduce
output
is set to "export" innext.config.js
to cause error.pnpm build
.Describe the Bug
Whenever
output
is set to "export" innext.config.js
and you build the project you will be met with the below error. If I was to removeoutput
fromnext.config.js
the project compiles fine. As well if remove the dynamic routes (deleteblog
folder) from the project whileoutput
is set to "export" the project compiles fine.Expected Behavior
Build should be successful.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
From SyncLinear.com | NEXT-1092
The text was updated successfully, but these errors were encountered: