تابستون داره تموم میشه ها، فرصت‌ها محدودن کلی آفر جذاب در کمپین تابستون🔥👇
۰ ثانیه
۰ دقیقه
۰ ساعت
۲ سیدامیرحسین حسینی
باز نشدن npm
جامعه ری اکت ایجاد شده در ۱۱ آذر ۱۴۰۱

Compiled with problems:

X

ERROR in ./src/App.js

Module build failed (from ./node_modules/babel-loader/lib/index.js):

SyntaxError: C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\src\\App.js: Unexpected token (8:14)

6 | }

7 |

> 8 | export default

| ^

at instantiate (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:67:32)

at constructor (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:364:12)

at FlowParserMixin.raise (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:3365:19)

at FlowParserMixin.unexpected (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:3398:16)

at FlowParserMixin.parseExprAtom (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:11568:22)

at FlowParserMixin.parseExprAtom (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:7239:20)

at FlowParserMixin.parseExprSubscripts (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:11171:23)

at FlowParserMixin.parseUpdate (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:11153:21)

at FlowParserMixin.parseMaybeUnary (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:11127:23)

at FlowParserMixin.parseMaybeUnaryOrPrivate (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:10956:61)

at FlowParserMixin.parseExprOps (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:10962:23)

at FlowParserMixin.parseMaybeConditional (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:10937:23)

at FlowParserMixin.parseMaybeAssign (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:10895:21)

at FlowParserMixin.parseMaybeAssign (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:6031:18)

at C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:10863:39

at FlowParserMixin.allowInAnd (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:12635:16)

at FlowParserMixin.parseMaybeAssignAllowIn (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:10863:17)

at FlowParserMixin.parseExportDefaultExpression (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:14235:22)

at FlowParserMixin.parseExportDefaultExpression (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:5360:18)

at FlowParserMixin.parseExport (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:14139:25)

at FlowParserMixin.parseExport (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:5494:24)

at FlowParserMixin.parseStatementContent (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:13073:27)

at FlowParserMixin.parseStatementLike (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:12952:17)

at FlowParserMixin.parseStatementLike (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:5310:24)

at FlowParserMixin.parseModuleItem (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:12933:17)

at FlowParserMixin.parseBlockOrModuleBlockBody (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:13558:36)

at FlowParserMixin.parseBlockBody (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:13550:10)

at FlowParserMixin.parseProgram (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:12842:10)

at FlowParserMixin.parseTopLevel (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:12832:25)

at FlowParserMixin.parseTopLevel (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:6175:28)

at FlowParserMixin.parse (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:14740:10)

at parse (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\parser\\lib\\index.js:14782:38)

at parser (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\core\\lib\\parser\\index.js:41:34)

at parser.next ()

at normalizeFile (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\core\\lib\\transformation\\normalize-file.js:66:38)

at normalizeFile.next ()

at run (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\core\\lib\\transformation\\index.js:21:50)

at run.next ()

at transform (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\core\\lib\\transform.js:22:41)

at transform.next ()

at step (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\gensync\\index.js:261:32)

at C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\gensync\\index.js:273:13

at async.call.result.err.err (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\gensync\\index.js:223:11)

at C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\gensync\\index.js:189:28

at C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\@babel\\core\\lib\\gensync-utils\\async.js:72:7

at C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\gensync\\index.js:113:33

at step (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\gensync\\index.js:287:14)

at C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\gensync\\index.js:273:13

at async.call.result.err.err (C:\\Users\\AMIR\\Desktop\\Amir Test\\hello\\hello\\node_modules\\gensync\\index.js:223:11)

ERROR

[eslint]

src\\App.js

Line 8:14: Parsing error: Unexpected token (8:14)

زمانی که npm start رو میزنم همچین اروری بهم میده localhost

سیدامیرحسین حسینی ۱۱ آذر ۱۴۰۱، ۱۵:۵۰

سلام وقتتون بخیر .

در code احتمالا خطای syntax دارید .

کدتون رو ارسال کنید تا بتونیم راهنماییتون کنیم .

بهترین پاسخ
علیرضا ایمانی ۱۱ آذر ۱۴۰۱، ۱۷:۱۷