Deploy react + vite error

Hi! I really need your help! I’m trying to deploy my project, but keep getting the same error

Could you please help me?

tsconfig.json

{
“compilerOptions”: {
“target”: “ESNext”,
“lib”: [“DOM”, “DOM.Iterable”, “ESNext”],
“module”: “ESNext”,
“moduleResolution”: “Node”,
“jsx”: “react-jsx”,

"useDefineForClassFields": true,
"allowJs": false,
"skipLibCheck": true,
"esModuleInterop": false,
"allowSyntheticDefaultImports": true,
"allowImportingTsExtensions": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"baseUrl": "./src",
"paths": {
  "@/*": ["*"]
}

},
“include”: [“src/**/*”],
“references”: [{ “path”: “./tsconfig.node.json” }]
}

Vite Config

import react from ‘@vitejs/plugin-react’;
import path from ‘path’;
import { defineConfig } from ‘vite’;

// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
‘@’: path.resolve(__dirname, ‘src’),
},
extensions: [‘.js’, ‘.jsx’, ‘.ts’, ‘.tsx’],
},
plugins: [react()],
});

Hey,

There’s not a lot we can help with that goes beyond what the error messages are saying. If you have any specific questions about a specific service, reach out to us via the dashboard.

Jérémy.
Render Support, UTC+3

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