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

Error - Unexpected token #2

Open
vivekparekh8 opened this issue Jul 8, 2017 · 6 comments
Open

Error - Unexpected token #2

vivekparekh8 opened this issue Jul 8, 2017 · 6 comments

Comments

@vivekparekh8
Copy link

vivekparekh8 commented Jul 8, 2017

ERROR in ./~/react-count/lib/ViewCount.js
Module parse failed: /Users/vivekparekh/Documents/amazingPortfolio/node_modules/react-count/lib/Count.js Unexpected token (195:17)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (195:17)
    at Parser.pp$4.raise (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
    at Parser.pp.unexpected (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
    at Parser.pp$3.parseExprAtom (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1822:12)
    at Parser.pp$3.parseExprSubscripts (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1715:21)
    at Parser.pp$3.parseMaybeUnary (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1692:19)
    at Parser.pp$3.parseExprOps (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1637:21)
    at Parser.pp$3.parseMaybeConditional (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1620:21)
    at Parser.pp$3.parseMaybeAssign (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1597:21)
    at Parser.pp$1.parseVar (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1034:28)
    at Parser.pp$1.parseVarStatement (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:917:10)
 @ ./~/react-count/lib/index.js 1:22-40
Module parse failed: /Users/vivekparekh/Documents/amazingPortfolio/node_modules/react-count/lib/ViewCount.js Unexpected token (16:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (16:6)
    at Parser.pp$4.raise (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:2221:15)
    at Parser.pp.unexpected (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:603:10)
    at Parser.pp$3.parseExprAtom (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1822:12)
    at Parser.pp$3.parseExprSubscripts (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1715:21)
    at Parser.pp$3.parseMaybeUnary (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1692:19)
    at Parser.pp$3.parseExprOps (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1637:21)
    at Parser.pp$3.parseMaybeConditional (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1620:21)
    at Parser.pp$3.parseMaybeAssign (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1597:21)
    at Parser.pp$3.parseParenAndDistinguishExpression (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1861:32)
    at Parser.pp$3.parseExprAtom (/Users/vivekparekh/Documents/amazingPortfolio/node_modules/webpack/node_modules/acorn/dist/acorn.js:1796:19)
 @ ./~/react-count/lib/index.js 3:21-43
webpack: Failed to compile.

Usage :
import Count from 'react-count'// Tried var, const with require as well
<Count isViewCounter={true} counterText="views" firebaseHost="https://counter-button.firebaseio.com/" firebaseResourceId='views-counter'/>

webpack.config.js I use - webpack.config.js

Thanks for helping out.

@vivekparekh8
Copy link
Author

Is anybody using this ?

@adarshks
Copy link

@vivekparekh8 did you get any solution for the issue, i am getting the same error.

@thisismydesign
Copy link

Same here, it doesn't work.

@vivekparekh8
Copy link
Author

Nope.

@thisismydesign
Copy link

Why close the issue then? Project looks legit otherwise, I was glad to notice this open issue.

@vivekparekh8 vivekparekh8 reopened this Sep 13, 2018
@vivekparekh8
Copy link
Author

Lets keep it open then.

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

3 participants