Error when building NextJS app: Collecting page data ..TypeError: c is not a function #12692
Unanswered
AlexanderPolenov
asked this question in
Help
Replies: 2 comments
-
Alright, 8 hours in, and this is where I am now. First, I managed to build the project unminified, by adding the following to the next.config.mjs:
The error remains however, now it says TypeError: facebook is not a function. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Alright, I found the workaround.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Error only happens on
npm run build
. Everything is fine when I am running in dev mode.package.json
npm run build
output:\api\auth[...nextauth]\route.js content:
Beautified content of failing route.js:
So we can see that
c
replacesFacebookProvider
which is for some reason is lost during the build.Beta Was this translation helpful? Give feedback.
All reactions