sawtaytoes / ghadyani-framework-old Goto Github PK
View Code? Open in Web Editor NEWA starter project for dev and production builds of Webpack, React, and Redux.
License: MIT License
A starter project for dev and production builds of Webpack, React, and Redux.
License: MIT License
server code with es6 import export syntax works in dev, but gives:
(function (exports, require, module, __filename, __dirname) { import
in production
I am using axios for isomorphic http requests.
in backend.js I am getting the error 'XMLHttpRequest is not defined'
this only happens in axios when target is not set to node
in webpack.
webpack.config.server.prod has target: 'node'
correctly set.
The error in node goes away if I add target: 'node'
to webpack.config.client.prod
which means that code is also being ran on the server side which it should not be.
obviously i can't actually keep target: 'node'
in the client config, since it makes the browser break.
Why whould client.prod be compiled into backend.js? how do I fix this?
what's the right way to collect a client side config into react with this setup? e.g. if I needed to know the server port in the client side.
server/configs seems to only have webpack configs and server side configs
ERROR in ./src/components/header/header.jsx
Module build failed: SyntaxError: Decorators are not officially supported yet in 6.x pending a proposal update.
However, if you need to use them you can install the legacy decorators transform with:
npm install babel-plugin-transform-decorators-legacy --save-dev
and add the following line to your .babelrc file:
{
"plugins": ["transform-decorators-legacy"]
}
The repo url is: https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.
but my babelrc has:
{
"plugins": [
"transform-runtime",
"transform-class-properties",
"react-hot-loader/babel",
"transform-decorators-legacy"
],
"presets": [
"latest",
"stage-0",
"react",
],
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.