force react-google-login in version "^5.2.2."

I'm deploying my front end, and I'm encountering issues with the React version, which is 18, and the dependency react-google-login in version "^5.2.2." I can't find a solution for this in Railway
14 Replies
Percy
Percy14mo ago
Project ID: 5bd4bcbd-57e9-4810-bebf-59badb02ab3d
Lucas Soldier
Lucas SoldierOP14mo ago
5bd4bcbd-57e9-4810-bebf-59badb02ab3d
ThallesComH
ThallesComH14mo ago
We need more information, what error is happening and what are you trying to solve it?
Lucas Soldier
Lucas SoldierOP14mo ago
I'm trying to set up the project, and it's giving me an error related to the versions of React, Google Login, and React Router DOM, and I don't know what to do. I need to deploy it in 1 hour. :c
ThallesComH
ThallesComH14mo ago
but what error?
Lucas Soldier
Lucas SoldierOP14mo ago
No description
Lucas Soldier
Lucas SoldierOP14mo ago
and deploy logs
No description
ThallesComH
ThallesComH14mo ago
that's only a warning, not an actual error. this is an error, it says that it can't find your start script in package.json. how do you run your application?
Lucas Soldier
Lucas SoldierOP14mo ago
yes "start": "serve dist -s -n -L -p $PORT",
ThallesComH
ThallesComH14mo ago
well, for some reason Railway can't find your package.json. send me your package.json and your project contains the file Dockerfile?
Lucas Soldier
Lucas SoldierOP14mo ago
dockerFile?? { "name": "ladyfitlovers", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "start": "serve dist -s -n -L -p $PORT", "build": "vite build", "lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0", "preview": "vite preview" }, "dependencies": { "@ant-design/icons": "^5.2.6", "@azure/msal-react": "^2.0.3", "@emailjs/browser": "^3.11.0", "@redux-devtools/extension": "^3.2.5", "antd": "^5.9.4", "axios": "^1.5.1", "chart.js": "^4.4.0", "formik": "^2.4.5", "gapi-script": "^1.2.0", "react": "17.0.2", "react-avatar-editor": "^13.0.0", "react-chartjs-2": "^5.2.0", "react-dom": "17.0.2", "react-google-login": "^5.2.2", "react-redux": "^8.1.2", "react-responsive": "^9.0.2", "react-router-dom": "^6.16.0", "redux": "^4.2.1", "redux-thunk": "^2.4.2", "serve": "^14.2.1", "yup": "^1.3.2" }, "devDependencies": { "@vitejs/plugin-react": "^4.0.3", "eslint": "^8.45.0", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-react-refresh": "^0.4.3", "tailwindcss": "^3.3.3", "vite": "^4.4.5" } }
ThallesComH
ThallesComH14mo ago
does your project contains a file named Dockerfile? probably not
Lucas Soldier
Lucas SoldierOP14mo ago
nono
Brody
Brody14mo ago
railway is not modifying anything, this work be an issue with your project, can you please share your repo?
Want results from more Discord servers?
Add your server