Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when i type "npm run build" but error: #6

Open
ghost opened this issue Apr 15, 2018 · 2 comments
Open

when i type "npm run build" but error: #6

ghost opened this issue Apr 15, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Apr 15, 2018

C:\pdf-to-markdown>npm run build

pdf-to-markdown@0.1.1 build C:\pdf-to-markdown
webpack

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\node_modules\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\node_modules\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

@darkcheftar
Copy link

Referring this discussion I guess rewrite is happening so the branch may have some problems. Maybe thats why you are unable to build

@darkcheftar
Copy link

@capturePointer Were you able to build?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant