I have a Nuxt application that build perfectly on local, but fails in Vercel.
Command
npm build
Directory:
outputs
Error in Vercel in picture.
error in vercel : myFunction is not exported
BUT, in my code the function is indeed exported and everything works fine.
Here is the import, in my component CategoryForm.vue :
import {removePhoto, savePhoto} from “~/services/CategoryService”;
And here is the function, in my CategoryService.ts :
enter image description here
I tried building in netlify too, and overriding the confs in Vercel :
enter image description here
But it is still not working.
Any idea ?
Thaïs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.