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

Not able to use the npm package - SyntaxError: Unexpected token #23

Closed
younanjo opened this issue Aug 18, 2016 · 4 comments
Closed

Not able to use the npm package - SyntaxError: Unexpected token #23

younanjo opened this issue Aug 18, 2016 · 4 comments

Comments

@younanjo
Copy link

Trying to use your multistep plugin in my project and getting:

ERROR in ./~/react-multistep/src/index.js Module parse failed: /Users/demo/node_modules/react-multistep/src/index.js Unexpected token (98:6) You may need an appropriate loader to handle this file type. SyntaxError: Unexpected token (98:6)

My .babelrc file looks like so:

{ "plugins": ["transform-react-jsx"], "presets": ["react", "es2015", "stage-2"], "env": { "development": { "presets": [ "react-hmre"] }, "production": { "plugins": [ "transform-react-constant-elements", "transform-react-remove-prop-types" ] } } }

any idea what's going on?

@srdjan
Copy link
Owner

srdjan commented Aug 18, 2016

seems that your project is using webpack, and this component is configured to use browserify...
see here: #20

@gnagel
Copy link

gnagel commented Aug 18, 2016

Hi @srdjan
The last commit 84799e8 didn't include multistep.jsx.
Can you add multistep.jsx to the project?

Thx!
Glenn

@srdjan
Copy link
Owner

srdjan commented Aug 19, 2016

:(
just did, sorry about that

@srdjan
Copy link
Owner

srdjan commented Aug 27, 2016

I have (wip) version with Webpack here: https://github.com/Srdjan/react-multistep-with-webpack...

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