You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone [email protected]:coodoo/react-redux-isomorphic-example.git
npm i
npm start
gives:
> [email protected] start /Users/steve/dev/kv/node/qna/react-redux-isomorphic-example
> node server/index.js
/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babel-core/lib/transformation/file/index.js:600
throw err;
^
SyntaxError: /Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/common/components/ProductDetail.jsx: Only one default export allowed per module. (60:0)
58 | // refer from using decorator before it became a standarized
59 | // @connect( (state, ownProps) => { products: state.products } )
> 60 | export default connect( (state, ownProps) => ({ products: state.products }) )(ProductDetail)
| ^
61 |
at Parser.pp$5.raise (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:4246:13)
at Parser.pp$1.raiseDuplicateExportError (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:2666:8)
at Parser.pp$1.checkDuplicateExports (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:2660:10)
at Parser.pp$1.checkExport (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:2559:12)
at Parser.pp$1.parseExport (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:2496:10)
at Parser.parseExport (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:5296:20)
at Parser.pp$1.parseStatement (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:1752:74)
at Parser.parseStatement (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:5218:22)
at Parser.pp$1.parseBlockBody (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:2133:21)
at Parser.pp$1.parseTopLevel (/Users/steve/dev/kv/node/qna/react-redux-isomorphic-example/node_modules/babylon/lib/index.js:1645:8)
easy fix:
remove export default from line 8 of ProductDetail.jsx
The text was updated successfully, but these errors were encountered:
With Node 6.9.1 & npm 3.10.8:
gives:
easy fix:
remove
export default
from line 8 of ProductDetail.jsxThe text was updated successfully, but these errors were encountered: