issue deploying to vercel
Answered
Giant panda posted this in #help-forum
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
hi guys,
when i build locally everything is fine, when i deploy to vercel, i get the following error
when i build locally everything is fine, when i deploy to vercel, i get the following error
![Image](https://cdn.discordapp.com/attachments/1163811071488970753/1163811071639953428/image.png?ex=6540ee86&is=652e7986&hm=296fc3077be87afe7f2d6c89b4b0fbdc7e37f720f55ae8e79c85e4d63a55bb80&)
40 Replies
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
do you have a tsconfig file, and if so can you post it here
/ do you have any paths set: https://www.typescriptlang.org/tsconfig#paths
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
just the @ sign
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
}
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
uhh so it is there... have you customized the build script somehow?
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
{
"name": "nextjs",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"format": "prettier --write \"./{components,data,interfaces,lib,models,pages,public,styles,types,validations}/**/*.{ts,tsx,js,json,html,css}\"",
"postbuild": "next-sitemap"
},
"dependencies": {
"alymkarimg-react-search-box": "^3.9.0",
"formidable": "^3.5.1",
"moment": "^2.29.4",
"mongoose": "^6.8.0",
"next": "latest",
"next-sitemap": "^3.1.32",
"prettier": "^2.8.0",
"react": "^18",
"react-data-table-component": "^7.5.4",
"react-datepicker": "^4.19.0",
"react-dom": "^18",
"react-range-slider-input": "^3.0.7",
"react-select": "5",
"react-toastify": "^9.1.3",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/formidable": "^3.4.3",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-datepicker": "^4.15.1",
"@types/react-dom": "^18",
"@typescript-eslint/eslint-plugin": "5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"autoprefixer": "^10",
"eslint": "^8.7.0",
"eslint-config-next": "13.5.4",
"postcss": "^8",
"typescript": "^5"
}
}
i changed prettier abit
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
and you have:
/pages
/components
/forms
/JobUploadForm.tsx
/package.json
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
![Image](https://cdn.discordapp.com/attachments/1163811071488970753/1163811990712631346/image.png?ex=6540ef61&is=652e7a61&hm=b54c3ba1f3b3f2bc2576ce49debd570e7def502af1263dfa8d57a25bf9baea0f&)
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
and inside your components folder
and whats your code for said file (like are you default export)
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
![Image](https://cdn.discordapp.com/attachments/1163811071488970753/1163812149274087475/image.png?ex=6540ef86&is=652e7a86&hm=d3ae8c76df8da0e1c3e22ee7d4bae6832a5a2095ec0c8063c7604430dde1d425&)
yeah, i tried standard exports too
both resulted in the same error
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
so something like
export default function JobUploadForm()
right![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
![Image](https://cdn.discordapp.com/attachments/1163811071488970753/1163812368325824512/image.png?ex=6540efbb&is=652e7abb&hm=7d094a5e2293a887166ab9fecd3fdf29b08e558a6a19af7aa258bd6ff324deb8&)
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
i meant in the component file, how does that look
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
export default JobUploadForm;
at present
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
uhhhh this looks very normal
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
yeah
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
and
npm run build && npm run start
on local device works?vercel must be having issues ðŸ˜
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
![Image](https://cdn.discordapp.com/attachments/1163811071488970753/1163812769372577844/image.png?ex=6540f01a&is=652e7b1a&hm=cdf4d9c9cd22feb0f8e2f95308ba920e8048abfde8be8f84c850a5b160b2cdad&)
ah damn
im off for lunch then
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
enjoy (sorry that i couldn't be of any assistance)
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
No worries, I’m pretty much out of them too
Thanks for your time!
![Avatar](https://cdn.discordapp.com/avatars/414145877335080960/c7ab639b9f825e9f8db0ed902b831f2b.webp?size=256)
linesofcode
Hey
![Avatar](https://cdn.discordapp.com/avatars/414145877335080960/c7ab639b9f825e9f8db0ed902b831f2b.webp?size=256)
linesofcode
Check the casing of the file names
Answer
![Avatar](https://cdn.discordapp.com/avatars/414145877335080960/c7ab639b9f825e9f8db0ed902b831f2b.webp?size=256)
linesofcode
Between your file system
And what’s in GitHub
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
ohh that is smart, windows can sometimes be nicer than linux
![Avatar](https://cdn.discordapp.com/avatars/414145877335080960/c7ab639b9f825e9f8db0ed902b831f2b.webp?size=256)
linesofcode
Git can be case sensitive or case insensitive
Depending on the os and your config
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
Sure! Thanks, will do, I’ll brb
![Avatar](https://cdn.discordapp.com/embed/avatars/2.png)
Giant pandaOP
Nice, that was it, i changed Forms => forms
![Avatar](https://cdn.discordapp.com/avatars/657067112434499595/c78dd8e985ede1ad50c31ac682dd91a1.webp?size=256)
risky
lol one more thing added to my list of weirdness to check 🙂
![Avatar](https://cdn.discordapp.com/avatars/414145877335080960/c7ab639b9f825e9f8db0ed902b831f2b.webp?size=256)
linesofcode
Nice!