Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./src/web-app-commons/HOC/OverlayWrapper.jsx
- SyntaxError: /Users/prabhjotrai/temp/client-web/src/web-app-commons/HOC/OverlayWrapper.jsx: Support for the experimental syntax 'classProperties' isn't currently enabled (33:22):
- 31 | export default WrappedComponent => {
- 32 | return class extends Component {
- > 33 | static propTypes = {
- | ^
- 34 | overlayProps: PropTypes.shape({
- 35 | open: PropTypes.bool
- 36 | })
- Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.
- ./src/web-app-commons/HOC/Preview.jsx
- SyntaxError: /Users/prabhjotrai/temp/client-web/src/web-app-commons/HOC/Preview.jsx: Support for the experimental syntax 'objectRestSpread' isn't currently enabled (60:3):
- 58 | persistent = true,
- 59 | overflowX = 'inherit',
- > 60 | ...props
- | ^
- 61 | } = {}) => WrappedComponent => {
- 62 | return class extends Component {
- 63 | displayName = `${WrappedComponent.displayName ||
- Add @babel/plugin-proposal-object-rest-spread (https://git.io/vb4Ss) to the 'plugins' section of your Babel config to enable transformation.
- ~/temp/client-web master ● cat package.json | grep babel
- "@babel/core": "7.1.0",
- "babel-core": "7.0.0-bridge.0",
- "babel-eslint": "9.0.0",
- "babel-jest": "23.6.0",
- "babel-loader": "8.0.4",
- "babel-plugin-emotion": "^9.2.5",
- "babel-plugin-named-asset-import": "^0.2.2",
- "babel-preset-react-app": "^5.0.4",
- "@babel/plugin-proposal-class-properties": "^7.1.0",
- "babel-plugin-glamorous-to-emotion": "^1.0.1",
- "^.+\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
- "babel": {
- "plugins": ["@babel/plugin-proposal-class-properties"]
Add Comment
Please, Sign In to add comment