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
Project ID:
5bd4bcbd-57e9-4810-bebf-59badb02ab3d
5bd4bcbd-57e9-4810-bebf-59badb02ab3d
We need more information, what error is happening and what are you trying to solve it?
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
but what error?
and deploy logs
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?yes "start": "serve dist -s -n -L -p $PORT",
well, for some reason Railway can't find your
package.json
.
send me your package.json
and your project contains the file Dockerfile
?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"
}
}
does your project contains a file named
Dockerfile
? probably notnono
railway is not modifying anything, this work be an issue with your project, can you please share your repo?