why am i getting this error?

Jul 26 12:54:17 PM ==> Cloning from GitHub - slym758/Medikal-Fullstack-Website: Medikal Website
Jul 26 12:54:18 PM ==> Checking out commit ed89370828657c7321532ef3b9d4bfe387c6da2e in branch main
Jul 26 12:54:22 PM ==> Using Node version 14.17.0 (default)
Jul 26 12:54:22 PM ==> Docs on specifying a Node version: Specifying a Node Version | Render
Jul 26 12:54:22 PM ==> Using Node version 14.17.0 (default)
Jul 26 12:54:22 PM ==> Docs on specifying a Node version: Specifying a Node Version | Render
Jul 26 12:54:22 PM ==> Using Ruby version 2.6.8 (default)
Jul 26 12:54:22 PM ==> Docs on specifying a Ruby version: Specifying a Ruby Version | Render
Jul 26 12:54:52 PM ==> Installing dependencies with npm…
Jul 26 12:55:24 PM
Jul 26 12:55:24 PM > esbuild@0.17.15 postinstall /opt/render/project/src/client/node_modules/esbuild
Jul 26 12:55:24 PM > node install.js
Jul 26 12:55:24 PM
Jul 26 12:55:24 PM
Jul 26 12:55:24 PM > @fortawesome/fontawesome-free@6.4.0 postinstall /opt/render/project/src/client/node_modules/@fortawesome/fontawesome-free
Jul 26 12:55:24 PM > node attribution.js
Jul 26 12:55:24 PM
Jul 26 12:55:24 PM Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com
Jul 26 12:55:24 PM License - Free License | Font Awesome (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
Jul 26 12:55:24 PM Copyright 2023 Fonticons, Inc.
Jul 26 12:55:24 PM
Jul 26 12:55:25 PM added 320 packages from 245 contributors and audited 343 packages in 31.963s
Jul 26 12:55:25 PM
Jul 26 12:55:25 PM 39 packages are looking for funding
Jul 26 12:55:25 PM run npm fund for details
Jul 26 12:55:25 PM
Jul 26 12:55:25 PM found 3 vulnerabilities (2 moderate, 1 high)
Jul 26 12:55:25 PM run npm audit fix to fix them, or npm audit for details
Jul 26 12:55:31 PM audited 343 packages in 4.903s
Jul 26 12:55:31 PM
Jul 26 12:55:31 PM 39 packages are looking for funding
Jul 26 12:55:31 PM run npm fund for details
Jul 26 12:55:31 PM
Jul 26 12:55:31 PM found 3 vulnerabilities (2 moderate, 1 high)
Jul 26 12:55:31 PM run npm audit fix to fix them, or npm audit for details
Jul 26 12:55:41 PM ==> Using Python version 3.7.10 (default)
Jul 26 12:55:41 PM ==> Docs on specifying a Python version: Specifying a Python Version | Render
Jul 26 12:55:44 PM ==> Running build command ‘npm run build’…
Jul 26 12:55:45 PM
Jul 26 12:55:45 PM > client@0.0.0 build /opt/render/project/src/client
Jul 26 12:55:45 PM > vite build
Jul 26 12:55:45 PM
Jul 26 12:55:45 PM vite v4.2.1 building for production…
Jul 26 12:55:45 PM transforming…
Jul 26 12:55:45 PM ✓ 2 modules transformed.
Jul 26 12:55:45 PM ✓ built in 77ms
Jul 26 12:55:45 PM [vite]: Rollup failed to resolve import “/src/main.jsx” from “/opt/render/project/src/client/index.html”.
Jul 26 12:55:45 PM This is most likely unintended because it can break your application at runtime.
Jul 26 12:55:45 PM If you do want to externalize this module explicitly add it to
Jul 26 12:55:45 PM build.rollupOptions.external
Jul 26 12:55:45 PM error during build:
Jul 26 12:55:45 PM Error: [vite]: Rollup failed to resolve import “/src/main.jsx” from “/opt/render/project/src/client/index.html”.
Jul 26 12:55:45 PM This is most likely unintended because it can break your application at runtime.
Jul 26 12:55:45 PM If you do want to externalize this module explicitly add it to
Jul 26 12:55:45 PM build.rollupOptions.external
Jul 26 12:55:45 PM at onRollupWarning (file:///opt/render/project/src/client/node_modules/vite/dist/node/chunks/dep-79892de8.js:46368:19)
Jul 26 12:55:45 PM at onwarn (file:///opt/render/project/src/client/node_modules/vite/dist/node/chunks/dep-79892de8.js:46138:13)
Jul 26 12:55:45 PM at Object.onwarn (file:///opt/render/project/src/client/node_modules/rollup/dist/es/shared/node-entry.js:25149:13)
Jul 26 12:55:45 PM at ModuleLoader.handleInvalidResolvedId (file:///opt/render/project/src/client/node_modules/rollup/dist/es/shared/node-entry.js:23784:26)
Jul 26 12:55:45 PM at file:///opt/render/project/src/client/node_modules/rollup/dist/es/shared/node-entry.js:23744:26
Jul 26 12:55:45 PM npm ERR! code ELIFECYCLE
Jul 26 12:55:45 PM npm ERR! errno 1
Jul 26 12:55:45 PM npm ERR! client@0.0.0 build: vite build
Jul 26 12:55:45 PM npm ERR! Exit status 1
Jul 26 12:55:45 PM npm ERR!
Jul 26 12:55:45 PM npm ERR! Failed at the client@0.0.0 build script.
Jul 26 12:55:45 PM npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Jul 26 12:55:45 PM
Jul 26 12:55:45 PM npm ERR! A complete log of this run can be found in:
Jul 26 12:55:45 PM npm ERR! /opt/render/.cache/_logs/2023-07-26T09_55_45_897Z-debug.log
Jul 26 12:55:45 PM ==> Build failed :disappointed:

why am i getting this error?

Hi there,

It looks like you may be missing the src directory from your client code.

Regards,

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.