Relative Content

Tag Archive for javascripthtmljson

JSON file is not showing in Vite JS build

I am creating my dist folder with the command ‘npm run build’ but Vite JS is not compiling a JSON file that I need to retrieve the data from. Why is Vite not passing the JSON file in the dist folder?. I am working in a repo that was shared to me. This is the folder: “LuisDeAnda/src/assets/…” I moved the JSON file to public folder since I read it is better for compiling it. I am assuming the public folder is ‘LuisDeAnda’. But still I cant retrieve the data after npm run build and previewing it. By the way, my app only works fine in my local environment when I launch ‘npm run dev’.

Cookies fetch wrong data

i have a problem with cookies.I know that is problem in my json format data so when i use this style for product everything is ok