Guest User

Untitled

a guest
Oct 15th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. ./src/web-app-commons/HOC/OverlayWrapper.jsx
  2. 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):
  3.  
  4. 31 | export default WrappedComponent => {
  5. 32 | return class extends Component {
  6. > 33 | static propTypes = {
  7. | ^
  8. 34 | overlayProps: PropTypes.shape({
  9. 35 | open: PropTypes.bool
  10. 36 | })
  11.  
  12. Add @babel/plugin-proposal-class-properties (https://git.io/vb4SL) to the 'plugins' section of your Babel config to enable transformation.
  13.  
  14. ./src/web-app-commons/HOC/Preview.jsx
  15. 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):
  16.  
  17. 58 | persistent = true,
  18. 59 | overflowX = 'inherit',
  19. > 60 | ...props
  20. | ^
  21. 61 | } = {}) => WrappedComponent => {
  22. 62 | return class extends Component {
  23. 63 | displayName = `${WrappedComponent.displayName ||
  24.  
  25. Add @babel/plugin-proposal-object-rest-spread (https://git.io/vb4Ss) to the 'plugins' section of your Babel config to enable transformation.
  26.  
  27. ~/temp/client-web   master ●  cat package.json | grep babel
  28. "@babel/core": "7.1.0",
  29. "babel-core": "7.0.0-bridge.0",
  30. "babel-eslint": "9.0.0",
  31. "babel-jest": "23.6.0",
  32. "babel-loader": "8.0.4",
  33. "babel-plugin-emotion": "^9.2.5",
  34. "babel-plugin-named-asset-import": "^0.2.2",
  35. "babel-preset-react-app": "^5.0.4",
  36. "@babel/plugin-proposal-class-properties": "^7.1.0",
  37. "babel-plugin-glamorous-to-emotion": "^1.0.1",
  38. "^.+\.(js|jsx)$": "<rootDir>/node_modules/babel-jest",
  39. "babel": {
  40. "plugins": ["@babel/plugin-proposal-class-properties"]
Add Comment
Please, Sign In to add comment