Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Compiled with problems:X
- ERROR in ../home/src/Header.jsx
- Module build failed (from ./node_modules/babel-loader/lib/index.js):
- 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):
- 2 |
- 3 | export default function Header() {
- > 4 | return <div className='p-5 bg-blue-500 text-white text-3xl font-bold'>
- | ^
- 5 | Fidget Spinner World
- 6 | </div>
- 7 | }
- 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.
- 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.
- at instantiate (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:64:32)
- at constructor (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:362:12)
- at Parser.raise (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:3254:19)
- at Parser.expectOnePlugin (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:3300:18)
- at Parser.parseExprAtom (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:11192:18)
- at Parser.parseExprSubscripts (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10847:23)
- at Parser.parseUpdate (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10830:21)
- at Parser.parseMaybeUnary (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10806:23)
- at Parser.parseMaybeUnaryOrPrivate (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10644:61)
- at Parser.parseExprOps (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10649:23)
- at Parser.parseMaybeConditional (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10626:23)
- at Parser.parseMaybeAssign (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10587:21)
- at Parser.parseExpressionBase (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10541:23)
- at C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10537:39
- at Parser.allowInAnd (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12232:16)
- at Parser.parseExpression (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:10537:17)
- at Parser.parseReturnStatement (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12917:28)
- at Parser.parseStatementContent (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12573:21)
- at Parser.parseStatementLike (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12534:17)
- at Parser.parseStatementListItem (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12521:17)
- at Parser.parseBlockOrModuleBlockBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13104:61)
- at Parser.parseBlockBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13097:10)
- at Parser.parseBlock (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13085:10)
- at Parser.parseFunctionBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:11904:24)
- at Parser.parseFunctionBodyAndFinish (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:11890:10)
- at C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13240:12
- at Parser.withSmartMixTopicForbiddingContext (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12214:14)
- at Parser.parseFunction (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13239:10)
- at Parser.parseExportDefaultExpression (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13724:19)
- at Parser.parseExport (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13651:25)
- at Parser.parseStatementContent (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12652:27)
- at Parser.parseStatementLike (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12534:17)
- at Parser.parseModuleItem (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12518:17)
- at Parser.parseBlockOrModuleBlockBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13104:36)
- at Parser.parseBlockBody (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:13097:10)
- at Parser.parseProgram (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12432:10)
- at Parser.parseTopLevel (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:12422:25)
- at Parser.parse (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:14234:10)
- at parse (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\parser\lib\index.js:14276:38)
- at parser (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\core\lib\parser\index.js:41:34)
- at parser.next (<anonymous>)
- at normalizeFile (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\core\lib\transformation\normalize-file.js:65:38)
- at normalizeFile.next (<anonymous>)
- at run (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\core\lib\transformation\index.js:21:50)
- at run.next (<anonymous>)
- at transform (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\@babel\core\lib\transform.js:22:41)
- at transform.next (<anonymous>)
- at step (C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\gensync\index.js:261:32)
- at C:\Users\shan computers\Desktop\micro-fe-intro\pdp\node_modules\gensync\index.js:273:13
- 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