Advertisement
josephkagimu1

Untitled

Feb 10th, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.82 KB | None | 0 0
  1. Compiled with problems:X
  2.  
  3. ERROR in ../home/src/Header.jsx
  4.  
  5. Module build failed (from ./node_modules/babel-loader/lib/index.js):
  6. SyntaxError: C:\Users\shan computers\Desktop\micro-fe-intro\home\src\Header.jsx: Support for the experimental syntax 'jsx' isn't currently enabled (4:12):
  7.  
  8. 2 |
  9. 3 | export default function Header() {
  10. > 4 | return <div className='p-5 bg-blue-500 text-white text-3xl font-bold'>
  11. | ^
  12. 5 | Fidget Spinner World
  13. 6 | </div>
  14. 7 | }
  15.  
  16. Add @babel/preset-react (https://github.com/babel/babel/tree/main/packages/babel-preset-react) to the 'presets' section of your Babel config to enable transformation.
  17. If you want to leave it as-is, add @babel/plugin-syntax-jsx (https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx) to the 'plugins' section to enable parsing.
  18. at instantiate (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:64:32)
  19. at constructor (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:362:12)
  20. at Parser.raise (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:3254:19)
  21. at Parser.expectOnePlugin (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:3300:18)
  22. at Parser.parseExprAtom (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:11192:18)
  23. at Parser.parseExprSubscripts (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10847:23)
  24. at Parser.parseUpdate (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10830:21)
  25. at Parser.parseMaybeUnary (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10806:23)
  26. at Parser.parseMaybeUnaryOrPrivate (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10644:61)
  27. at Parser.parseExprOps (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10649:23)
  28. at Parser.parseMaybeConditional (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10626:23)
  29. at Parser.parseMaybeAssign (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10587:21)
  30. at Parser.parseExpressionBase (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10541:23)
  31. at C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10537:39
  32. at Parser.allowInAnd (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12232:16)
  33. at Parser.parseExpression (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10537:17)
  34. at Parser.parseReturnStatement (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12917:28)
  35. at Parser.parseStatementContent (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12573:21)
  36. at Parser.parseStatementLike (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12534:17)
  37. at Parser.parseStatementListItem (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12521:17)
  38. at Parser.parseBlockOrModuleBlockBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13104:61)
  39. at Parser.parseBlockBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13097:10)
  40. at Parser.parseBlock (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13085:10)
  41. at Parser.parseFunctionBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:11904:24)
  42. at Parser.parseFunctionBodyAndFinish (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:11890:10)
  43. at C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13240:12
  44. at Parser.withSmartMixTopicForbiddingContext (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12214:14)
  45. at Parser.parseFunction (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13239:10)
  46. at Parser.parseExportDefaultExpression (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13724:19)
  47. at Parser.parseExport (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13651:25)
  48. at Parser.parseStatementContent (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12652:27)
  49. at Parser.parseStatementLike (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12534:17)
  50. at Parser.parseModuleItem (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12518:17)
  51. at Parser.parseBlockOrModuleBlockBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13104:36)
  52. at Parser.parseBlockBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13097:10)
  53. at Parser.parseProgram (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12432:10)
  54. at Parser.parseTopLevel (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12422:25)
  55. at Parser.parse (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:14234:10)
  56. at parse (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:14276:38)
  57. at parser (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\core\lib\parser\index.js:41:34)
  58. at parser.next (<anonymous>)
  59. at normalizeFile (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\core\lib\transformation\normalize-file.js:65:38)
  60. at normalizeFile.next (<anonymous>)
  61. at run (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\core\lib\transformation\index.js:21:50)
  62. at run.next (<anonymous>)
  63. at transform (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\core\lib\transform.js:22:41)
  64. at transform.next (<anonymous>)
  65. at step (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\gensync\index.js:261:32)
  66. at C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\gensync\index.js:273:13
  67. at async.call.result.err.err (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\gensync\index.js:223:11)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement