Hi ,
Since 11/11/23 i failed to build react project, i tried to build an already successful build but it’s also failed
Hi there,
Have you checked the service’s deploy logs for any error details that may have led up to the failed build? That would be the first place I would check.
Regards,
Mike
Render Support Engineer, MT (UTC-6)
I checked, as i said i try to rebuild repository that already pass and deploy
here is the error
M ==> Using Python version 3.7.10 (default)
Nov 13 04:38:13 PM ==> Docs on specifying a Python version: Specifying a Python Version | Render Docs
Nov 13 04:38:18 PM ==> Running build command ‘npm run build’…
Nov 13 04:38:18 PM
Nov 13 04:38:18 PM > flight-club@0.0.1 build /opt/render/project/src/FlightClubVite
Nov 13 04:38:18 PM > tsc && vite build
Nov 13 04:38:18 PM
Nov 13 04:38:39 PM failed to load config from /opt/render/project/src/FlightClubVite/vite.config.ts
Nov 13 04:38:39 PM error during build:
Nov 13 04:38:39 PM Error: Cannot find module ‘node:path’
Nov 13 04:38:39 PM Require stack:
Nov 13 04:38:39 PM - /opt/render/project/src/FlightClubVite/node_modules/vite/dist/node-cjs/publicUtils.cjs
Nov 13 04:38:39 PM - /opt/render/project/src/FlightClubVite/node_modules/vite/index.cjs
Nov 13 04:38:39 PM - /opt/render/project/src/FlightClubVite/vite.config.ts
Nov 13 04:38:39 PM - /opt/render/project/src/FlightClubVite/node_modules/vite/dist/node/chunks/dep-2285ba4f.js
Nov 13 04:38:39 PM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Nov 13 04:38:39 PM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Nov 13 04:38:39 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Nov 13 04:38:39 PM at require (internal/modules/cjs/helpers.js:88:18)
Nov 13 04:38:39 PM at Object. (/opt/render/project/src/FlightClubVite/node_modules/vite/dist/node-cjs/publicUtils.cjs:3:14)
Nov 13 04:38:39 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Nov 13 04:38:39 PM at Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 13 04:38:39 PM at Object._require.extensions. [as .js] (file:///opt/render/project/src/FlightClubVite/node_modules/vite/dist/node/chunks/dep-2285ba4f.js:63074:17)
Nov 13 04:38:39 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Nov 13 04:38:39 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Nov 13 04:38:39 PM npm ERR! code ELIFECYCLE
Nov 13 04:38:39 PM npm ERR! errno 1
Nov 13 04:38:39 PM npm ERR! flight-club@0.0.1 build: tsc && vite build
Nov 13 04:38:39 PM npm ERR! Exit status 1
Nov 13 04:38:39 PM npm ERR!
Nov 13 04:38:39 PM npm ERR! Failed at the flight-club@0.0.1 build script.
Nov 13 04:38:39 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Nov 13 04:38:39 PM
Nov 13 04:38:39 PM npm ERR! A complete log of this run can be found in:
Nov 13 04:38:39 PM npm ERR! /opt/render/.cache/_logs/2023-11-13T14_38_39_843Z-debug.log
Nov 13 04:38:39 PM ==> Build failed
Hi there,
I can see there are some errors in the build coming from your configuration setup. I recommend doing some online research on those errors for solutions, as these are not likely coming from the Render platform.
That being said, as a general suggestion, many odd Node
errors can be resolved by ensuring the version of Node that is being used on the service supports the features you are trying to use. Note that Render’s default version is quite outdated (which will hopefully be improved soon!).
Regards,
Mike
Render Support Engineer, MT (UTC-6)
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.