Upload to vercel says. Failed to load next.config.js. invalid environment variables.
Answered
Dwarf Hotot posted this in #help-forum
Dwarf HototOP
Does anyone know how to fix the errors listed in the title? I tried every fix in the book and the exact same error is happening even the ci = false hack in the settings. Anyone encountered this pesky problem?
20 Replies
@Dwarf Hotot Does anyone know how to fix the errors listed in the title? I tried every fix in the book and the exact same error is happening even the ci = false hack in the settings. Anyone encountered this pesky problem?
need more info here. what is the full error message? this sounds like t3 env
Dwarf HototOP
its a t3 app yes. So heres a screenshot of my error and heres my directory, env.mjs (yes mjs, vercel error log and claude 3.5 suggested i change the name) file, and my next config.
@Dwarf Hotot its a t3 app yes. So heres a screenshot of my error and heres my directory, env.mjs (yes mjs, vercel error log and claude 3.5 suggested i change the name) file, and my next config.
hmm does the same error occur if you build the app locally?
Dwarf HototOP
no it doesnt at all
@Dwarf Hotot no it doesnt at all
Are the environment variables exact same in local and on Vercel?
Dwarf HototOP
yes look ill show you.
i literally copy pasted from my vs code
everything is perfectly fine when i npm run dev
@Dwarf Hotot i literally copy pasted from my vs code
Hmm remove the surrounding "
Answer
But that’s the only thing that can possibly affect anything here, everything else looks good
Dwarf HototOP
ahhh now were getting something different
have you seen this before?
That looks like an eslint error, you misconfigured eslint. That much I know, how to fix it I don’t know
Dwarf HototOP
apparently someone said this in answer overflow when i just looked it up,
only thing is ive never touched es lintrc. do you know where that would be? not in node modules right?
I'm still getting used to next and t3
@joulev Hmm remove the surrounding "
Dwarf HototOP
btw thanks for suggesting this. I would have been going around in circles for far too much longer
Dwarf HototOP
well fam. It deploys perfectly now
best blessings from christ the most high to you
nice to hear it's working