ERROR in ./src/javascript/index.jsx
Module parse failed: C:\pdf-to-markdown\src\javascript\index.jsx Unexpected toke
n (11:20)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (11:20)
at Parser.pp$4.raise (C:\pdf-to-markdown\node_modules\webpack\node_modules\a
corn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\pdf-to-markdown\node_modules\webpack\node_module
s\acorn\dist\acorn.js:603:10)
at Parser.pp$3.parseExprAtom (C:\pdf-to-markdown\node_modules\webpack\node_m
odules\acorn\dist\acorn.js:1822:12)
at Parser.pp$3.parseExprSubscripts (C:\pdf-to-markdown\node_modules\webpack\
node_modules\acorn\dist\acorn.js:1715:21)
at Parser.pp$3.parseMaybeUnary (C:\pdf-to-markdown\node_modules\webpack\node
_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\pdf-to-markdown\node_modules\webpack\node_mo
dules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\pdf-to-markdown\node_modules\webpac
k\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\pdf-to-markdown\node_modules\webpack\nod
e_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExprList (C:\pdf-to-markdown\node_modules\webpack\node_m
odules\acorn\dist\acorn.js:2165:22)
at Parser.pp$3.parseSubscripts (C:\pdf-to-markdown\node_modules\webpack\node
_modules\acorn\dist\acorn.js:1741:35)
at Parser.pp$3.parseExprSubscripts (C:\pdf-to-markdown\node_modules\webpack\
node_modules\acorn\dist\acorn.js:1718:17)
at Parser.pp$3.parseMaybeUnary (C:\pdf-to-markdown\node_modules\webpack\node
_modules\acorn\dist\acorn.js:1692:19)
at Parser.pp$3.parseExprOps (C:\pdf-to-markdown\node_modules\webpack\node_mo
dules\acorn\dist\acorn.js:1637:21)
at Parser.pp$3.parseMaybeConditional (C:\pdf-to-markdown\node_modules\webpac
k\node_modules\acorn\dist\acorn.js:1620:21)
at Parser.pp$3.parseMaybeAssign (C:\pdf-to-markdown\node_modules\webpack\nod
e_modules\acorn\dist\acorn.js:1597:21)
at Parser.pp$3.parseExpression (C:\pdf-to-markdown\node_modules\webpack\node
_modules\acorn\dist\acorn.js:1573:21)
at Parser.pp$1.parseStatement (C:\pdf-to-markdown\nodemodules\webpack\node
modules\acorn\dist\acorn.js:727:47)
at Parser.pp$1.parseBlock (C:\pdf-to-markdown\node_modules\webpack\node_modu
les\acorn\dist\acorn.js:981:25)
at Parser.pp$3.parseFunctionBody (C:\pdf-to-markdown\node_modules\webpack\no
de_modules\acorn\dist\acorn.js:2105:24)
at Parser.pp$1.parseFunction (C:\pdf-to-markdown\node_modules\webpack\node_m
odules\acorn\dist\acorn.js:1065:10)
at Parser.pp$1.parseFunctionStatement (C:\pdf-to-markdown\node_modules\webpa
ck\node_modules\acorn\dist\acorn.js:818:17)
at Parser.pp$1.parseStatement (C:\pdf-to-markdown\nodemodules\webpack\node
modules\acorn\dist\acorn.js:694:19)
at Parser.pp$1.parseTopLevel (C:\pdf-to-markdown\node_modules\webpack\node_m
odules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\pdf-to-markdown\node_modules\webpack\node_modules\acorn\
dist\acorn.js:516:17)
at Object.parse (C:\pdf-to-markdown\node_modules\webpack\node_modules\acorn\
dist\acorn.js:3098:39)
at Parser.parse (C:\pdf-to-markdown\node_modules\webpack\lib\Parser.js:902:1
5)
at NormalModule. (C:\pdf-to-markdown\node_modules\webpack\lib\Nor
malModule.js:104:16)
at NormalModule.onModuleBuild (C:\pdf-to-markdown\node_modules\webpack-core\
lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\pdf-to-markdown\node_modules\webpack-core\lib\NormalModule
Mixin.js:275:25)
at C:\pdf-to-markdown\node_modules\webpack-core\lib\NormalModuleMixin.js:259
:5
C:\pdf-to-markdown>npm run build
Hash: 396f0bfb9d565b6f60f0 Version: webpack 1.15.0 Time: 362ms Asset Size Chunks Chunk Names index.html 457 bytes [emitted] bundle.worker.js 1.54 MB [emitted] favicons/favicon.ico 318 bytes [emitted] [0] ./src/javascript/index.jsx 0 bytes [built] [failed]
ERROR in ./src/javascript/index.jsx Module parse failed: C:\pdf-to-markdown\src\javascript\index.jsx Unexpected toke n (11:20) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected token (11:20) at Parser.pp$4.raise (C:\pdf-to-markdown\node_modules\webpack\node_modules\a corn\dist\acorn.js:2221:15) at Parser.pp.unexpected (C:\pdf-to-markdown\node_modules\webpack\node_module s\acorn\dist\acorn.js:603:10) at Parser.pp$3.parseExprAtom (C:\pdf-to-markdown\node_modules\webpack\node_m odules\acorn\dist\acorn.js:1822:12) at Parser.pp$3.parseExprSubscripts (C:\pdf-to-markdown\node_modules\webpack\ node_modules\acorn\dist\acorn.js:1715:21) at Parser.pp$3.parseMaybeUnary (C:\pdf-to-markdown\node_modules\webpack\node _modules\acorn\dist\acorn.js:1692:19) at Parser.pp$3.parseExprOps (C:\pdf-to-markdown\node_modules\webpack\node_mo dules\acorn\dist\acorn.js:1637:21) at Parser.pp$3.parseMaybeConditional (C:\pdf-to-markdown\node_modules\webpac k\node_modules\acorn\dist\acorn.js:1620:21) at Parser.pp$3.parseMaybeAssign (C:\pdf-to-markdown\node_modules\webpack\nod e_modules\acorn\dist\acorn.js:1597:21) at Parser.pp$3.parseExprList (C:\pdf-to-markdown\node_modules\webpack\node_m odules\acorn\dist\acorn.js:2165:22) at Parser.pp$3.parseSubscripts (C:\pdf-to-markdown\node_modules\webpack\node _modules\acorn\dist\acorn.js:1741:35) at Parser.pp$3.parseExprSubscripts (C:\pdf-to-markdown\node_modules\webpack\ node_modules\acorn\dist\acorn.js:1718:17) at Parser.pp$3.parseMaybeUnary (C:\pdf-to-markdown\node_modules\webpack\node _modules\acorn\dist\acorn.js:1692:19) at Parser.pp$3.parseExprOps (C:\pdf-to-markdown\node_modules\webpack\node_mo dules\acorn\dist\acorn.js:1637:21) at Parser.pp$3.parseMaybeConditional (C:\pdf-to-markdown\node_modules\webpac k\node_modules\acorn\dist\acorn.js:1620:21) at Parser.pp$3.parseMaybeAssign (C:\pdf-to-markdown\node_modules\webpack\nod e_modules\acorn\dist\acorn.js:1597:21) at Parser.pp$3.parseExpression (C:\pdf-to-markdown\node_modules\webpack\node _modules\acorn\dist\acorn.js:1573:21) at Parser.pp$1.parseStatement (C:\pdf-to-markdown\nodemodules\webpack\node modules\acorn\dist\acorn.js:727:47) at Parser.pp$1.parseBlock (C:\pdf-to-markdown\node_modules\webpack\node_modu les\acorn\dist\acorn.js:981:25) at Parser.pp$3.parseFunctionBody (C:\pdf-to-markdown\node_modules\webpack\no de_modules\acorn\dist\acorn.js:2105:24) at Parser.pp$1.parseFunction (C:\pdf-to-markdown\node_modules\webpack\node_m odules\acorn\dist\acorn.js:1065:10) at Parser.pp$1.parseFunctionStatement (C:\pdf-to-markdown\node_modules\webpa ck\node_modules\acorn\dist\acorn.js:818:17) at Parser.pp$1.parseStatement (C:\pdf-to-markdown\nodemodules\webpack\node modules\acorn\dist\acorn.js:694:19) at Parser.pp$1.parseTopLevel (C:\pdf-to-markdown\node_modules\webpack\node_m odules\acorn\dist\acorn.js:638:25) at Parser.parse (C:\pdf-to-markdown\node_modules\webpack\node_modules\acorn\ dist\acorn.js:516:17) at Object.parse (C:\pdf-to-markdown\node_modules\webpack\node_modules\acorn\ dist\acorn.js:3098:39) at Parser.parse (C:\pdf-to-markdown\node_modules\webpack\lib\Parser.js:902:1 5) at NormalModule. (C:\pdf-to-markdown\node_modules\webpack\lib\Nor
malModule.js:104:16)
at NormalModule.onModuleBuild (C:\pdf-to-markdown\node_modules\webpack-core\
lib\NormalModuleMixin.js:310:10)
at nextLoader (C:\pdf-to-markdown\node_modules\webpack-core\lib\NormalModule
Mixin.js:275:25)
at C:\pdf-to-markdown\node_modules\webpack-core\lib\NormalModuleMixin.js:259
:5