Comments (3)
@MMMayC thank you for providing this feedback. There was a .babelrc
file missing from the github repo. I've added the file now, which should resolve the issue you are seeing. Thanks again.
from universal-javascript-with-react-node-and-redux.
I solved the problem but modify "export serverMiddleware from './Router.js';" to "import './Router.js'".
I don't know if it's a right way to do that but it works...
Then I got another syntax error:
I have no idea what is wrong. I thought it was the problem compiling jsx element but I checked the webpack.config, there is a module handling .jsx/.js, it should be alright, right?
module: {
loaders: [{
test: /.js?$/,
loader: 'babel-loader',
include: path.join(__dirname, 'client'),
query: {
plugins: [
['react-transform', {
transforms: [{
transform: 'react-transform-hmr',
// If you use React Native, pass 'react-native' instead:
imports: ['react'],
// This is important for Webpack HMR:
locals: ['module'],
}],
}],
],
},
}],
},
from universal-javascript-with-react-node-and-redux.
please update the packt codefiles as well because this was a real hassle.
I know 2 years have passed but people doing your tutorial right now are stuck without your babelrc
from universal-javascript-with-react-node-and-redux.
Related Issues (2)
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 universal-javascript-with-react-node-and-redux.