As I try to build my Vue 3 application using Vite and deploy it on Vercel, I am encountering an error. While the application works perfectly in the development environment, I am facing issues during the build process.
The error message that pops up is:
RollupError: Could not resolve "../components/childform/childForm.vue" from "src/pages/HomePage.vue"
at error (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:2124:30)
at ModuleLoader.handleInvalidResolvedId (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:23990:24)
at file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:23952:26
Error: Command "npm run build" exited with 1 BUILD_UTILS_SPAWN_1: Command "npm run build" exited with 1
I have double-checked that the path to the childForm.vue component is correct at "../components/childform/childForm.vue" relative to the src/pages/HomePage.vue file.
I suspect that this problem may be linked to the build configuration or how Vercel manages the build process. Any suggestions or insights on resolving this error would be greatly appreciated.