Comments (4)
@richardwlu I'm running into this also. Any luck figuring it out?
from simple-react-full-stack.
@jeremybphillips It ended up working for me. May have been from an update of dependencies? I haven't had time to determine yet. Here are my configs:
devServer: {
port: 3000,
hot: true,
inline: true,
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
secure: false,
logLevel: 'debug',
},
}
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.6",
"concurrently": "^4.1.0",
"css-loader": "^3.0.0",
"html-webpack-plugin": "^3.2.0",
"nodemon": "^1.19.1",
"style-loader": "^0.23.1",
"webpack": "^4.35.0",
"webpack-cli": "^3.3.5",
"webpack-dev-server": "^3.7.2"
},
"dependencies": {
"babel-polyfill": "^6.26.0",
"clean-webpack-plugin": "^3.0.0",
"cors": "^2.8.5",
"express": "^4.17.1",
"file-loader": "^4.0.0",
"jsforce": "^1.9.1",
"lodash": "^4.17.11",
"node-cron": "^2.0.3",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"url-loader": "^2.0.1"
}
}
"engines": {
"node": "11.10.1",
"npm": "6.7.0"
},
from simple-react-full-stack.
@richardwlu Thanks!
This seemed to work for me
proxy: {
"/api/": {
target: "http://[::1]:8080",
changeOrigin: true,
secure: false
}
}
from simple-react-full-stack.
proxy:{ '/v1/**': { target: 'http://localhost:8080', secure: false, changeOrigin: true } }
works for me
from simple-react-full-stack.
Related Issues (20)
- Do you need Docker support for this app? I can create docker-compose-dev file for development env, HOT 1
- Deploy to Heroku HOT 1
- error on npm run build
- what about the routes for front-end?? HOT 1
- is SSR a thing which could be possible here? HOT 1
- Just installed on my vps and dev mode doesnt work HOT 2
- SSR isomorphic app ? Google blank page ? HOT 1
- Client can access all app files HOT 2
- Deploying to NodeIIS HOT 2
- Serving static files (i.e. images...) from express
- Electron support HOT 1
- ES6 support for server-side HOT 3
- Creating a build, but the API endpoints returns 404 error. HOT 1
- Just saying thanks. HOT 1
- Any advice on adding node-sass to the package? HOT 1
- License? HOT 1
- Move webpack to "dependencies" from "devDependencies" HOT 1
- Upgrade to webpack v5 HOT 1
- Error occurred while trying to proxy request HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-react-full-stack.