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 building the package: ReactSlackChat.js Unexpected token (133:17) #24

Closed
gazpachu opened this issue Feb 1, 2018 · 2 comments
Closed

Comments

@gazpachu
Copy link

gazpachu commented Feb 1, 2018

➜  react-slack-chat git:(development) ✗ npm run build

> react-slack-chat@1.8.3 build /Users/blablabla/react-slack-chat
> cross-env NODE_ENV=production webpack

Hash: b4eb584c08a939d00a12
Version: webpack 1.15.0
Time: 115ms
   [0] multi main 28 bytes {0} [built] [1 error]
    + 1 hidden modules

ERROR in ./src/ReactSlackChat.js
Module parse failed: /Users/blablabla/react-slack-chat/src/ReactSlackChat.js Unexpected token (133:17)
You may need an appropriate loader to handle this file type.

Using node 8.9

@5punk
Copy link
Owner

5punk commented Mar 2, 2018

have you polyfill'd?
are you using babel?

@gazpachu
Copy link
Author

gazpachu commented Mar 5, 2018

I'm using what package.json has in it. I'm talking about building the library, not importing it in my project.

UPDATED. Nevermind, now it seems to be working :-)

@gazpachu gazpachu closed this as completed Mar 5, 2018
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