My project: Vercel CLI 39.1.3 🔍 Inspect: https://vercel.com/ejgutierrez74s-projects/pacman2024windows/dtQZtAerqsbex6nJ4uBPq1sx6JUr [4s] ✅ Preview: https://pacman2024windows-itozll8zi-ejgutierrez74s-projects.vercel.app [4s]
In local Vite the project and sketch is show right. Deploy in Vercel i cant see the sketch
Watch the project in local vite and works ok. Deploy to Vercel and doesnt work
My project:
My log:[22:12:38.436] Running build in Washington, D.C., USA (East) – iad1[22:12:38.578] Retrieving list of deployment files...[22:12:38.892] Previous build cache not available[22:12:39.025] Downloading 136 deployment files...[22:12:40.296] Running "vercel build"[22:12:42.034] Vercel CLI 39.1.3[22:12:43.075] Installing dependencies...[22:12:46.604] npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported[22:12:46.800] npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.[22:12:47.001] npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported[22:12:47.350] npm warn deprecated @humanwhocodes/object-schema@2.0.3: Use @eslint/object-schema instead[22:12:47.438] npm warn deprecated @humanwhocodes/config-array@0.11.14: Use @eslint/config-array instead[22:12:47.570] npm warn deprecated eslint-plugin-ecmascript-compat@3.2.1: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.[22:12:48.618] npm warn deprecated eslint@8.57.0: This version is no longer supported. Please see https://eslint.org/version-support for other options.[22:12:49.123] [22:12:49.124] added 320 packages in 6s[22:12:49.124] [22:12:49.124] 120 packages are looking for funding[22:12:49.125] run `npm fund` for details[22:12:49.150] Running "npm run build"[22:12:49.281] [22:12:49.283] > Practica Pacman2024@0.0.1 build[22:12:49.283] > vite build[22:12:49.283] [22:12:50.173] [36mvite v6.0.2 [32mbuilding for production...[36m[39m[22:12:50.175] (node:134) ExperimentalWarning: CommonJS module /vercel/path0/vite.config.js is loading ES Module /vercel/path0/node_modules/vite/dist/node/index.js using require().[22:12:50.175] Support for loading ES Module in require() is an experimental feature and might change at any time[22:12:50.175] (Use `node --trace-warnings ...` to show where the warning was created)[22:12:50.234] <script src="js/libraries/p5.min.js"> in "/index.html" can't be bundled without type="module" attributeI dont have any vercel.json file nor in my local repository nor in vercel. I installed vercel in local with pnpm i -g vercel and executed vercel to deploy following a little questionary..
Errors in console_
GEThttps://pacman2024windows.vercel.app/js/libraries/p5.min.js[HTTP/2 404 104ms]GEThttps://pacman2024windows.vercel.app/js/sketch.js[HTTP/2 404 82ms]GEThttps://ejgutierrez.github.io/Pacman2024Windows/assets/index-D3hqRGbY.cssCORS Missing Allow OriginSolicitud desde otro origen bloqueada: la política de mismo origen impide leer el recurso remoto en https://ejgutierrez.github.io/Pacman2024Windows/assets/index-D3hqRGbY.css (razón: falta la cabecera CORS 'Access-Control-Allow-Origin'). Código de estado: 404.Ha fallado la carga del <script> con origen "https://pacman2024windows.vercel.app/js/libraries/p5.min.js". [pacman2024windows.vercel.app:24:42](https://pacman2024windows.vercel.app/)GEThttps://pacman2024windows.vercel.app/js/sketch.js[HTTP/2 404 96ms]Ha fallado la carga del <script> con origen "https://pacman2024windows.vercel.app/js/sketch.js". [pacman2024windows.vercel.app:28:32](https://pacman2024windows.vercel.app/)GEThttps://ejgutierrez.github.io/Pacman2024Windows/assets/index-D3hqRGbY.cssCORS Missing Allow OriginSolicitud desde otro origen bloqueada: la política de mismo origen impide leer el recurso remoto en https://ejgutierrez.github.io/Pacman2024Windows/assets/index-D3hqRGbY.css (razón: falta la cabecera CORS 'Access-Control-Allow-Origin'). Código de estado: 404.GEThttps://ejgutierrez.github.io/Pacman2024Windows/assets/icon-ijzhoTP6.pngNS_BINDING_ABORTEDGEThttps://ejgutierrez.github.io/Pacman2024Windows/assets/icon-CrLf0eJB.svgNS_BINDING_ABORTEDA resource is blocked by OpaqueResponseBlocking, please check browser console for details. [icon-CrLf0eJB.svg](https://ejgutierrez.github.io/Pacman2024Windows/assets/icon-CrLf0eJB.svg)A resource is blocked by OpaqueResponseBlocking, please check browser console for details. [icon-ijzhoTP6.png](https://ejgutierrez.github.io/Pacman2024Windows/assets/icon-ijzhoTP6.png)La cookie “__vercel_live_token” ha sido rechazada porque se encuentra en un contexto de sitios cruzados y su “SameSite” es “Lax” o “Strict”. [validate](https://vercel.live/login/validate?hostname=pacman2024windows.vercel.app&deploymentId=)La cookie “__vercel_live_token” ha sido rechazada porque se encuentra en un contexto de sitios cruzados y su “SameSite” es “Lax” o “Strict”.