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

SyntaxError: Unexpected token, expected , (3:88) #68

Open
raniaamina opened this issue Mar 10, 2022 · 1 comment
Open

SyntaxError: Unexpected token, expected , (3:88) #68

raniaamina opened this issue Mar 10, 2022 · 1 comment

Comments

@raniaamina
Copy link

Hi I try to use this tool at first time and get this error. What should i do for fixing it?

html2react ./zectStudioPages/index.html -o ./src/components                                                                                                                                                                                                   
/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:4633
    throw err;
    ^

SyntaxError: Unexpected token, expected , (3:88)
    at Parser.pp$5.raise (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:4630:15)
    at Parser.pp.unexpected (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:1911:10)
    at Parser.pp.expect (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:1899:35)
    at Parser.pp$3.parseObj (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:4148:18)
    at Parser.pp$3.parseExprAtom (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:3885:29)
    at Parser.parseExprAtom (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:7426:30)
    at Parser.pp$3.parseExprSubscripts (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:3655:21)
    at Parser.pp$3.parseMaybeUnary (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:3635:21)
    at Parser.pp$3.parseExprOps (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:3565:21)
    at Parser.pp$3.parseMaybeConditional (/home/sherlock/.nvm/versions/node/v13.2.0/lib/node_modules/html-to-react-components/node_modules/babylon/lib/index.js:3542:21) {
  pos: 263,
  loc: Position { line: 3, column: 88 }
}
@roman01la
Copy link
Owner

At first a quick repro would be helpful

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

2 participants