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

spread operator error #2

Closed
crazy4groovy opened this issue Jan 27, 2018 · 6 comments
Closed

spread operator error #2

crazy4groovy opened this issue Jan 27, 2018 · 6 comments

Comments

@crazy4groovy
Copy link

$ npm start

inferno-seed@0.1.0 start C:\dev\projects\scrap\inferno-seed
inferno-scripts start

The setup option is deprecated and will be removed in v3. Please update your config to use before
Starting the development server...

Failed to compile.

./node_modules/inferno-bootstrap/lib/Button.js
Module parse failed: C:\dev\projects\inferno-seed\node_modules\inferno-bootstrap\lib\Button.js Unexpected token (40:6)
You may need an appropriate loader to handle this file type.
| tag: Tag,
| innerRef,
| ...attributes
| } = this.props;
|

@jhsware
Copy link
Owner

jhsware commented Jan 29, 2018

Do you have your .babelrc with the appropriate settings?

https://github.com/jhsware/inferno-bootstrap/blob/master/.babelrc

If you don't want to transpile packages in node_modules you can import from inferno-bootstrap/dist/... instead of /lib/...

@jhsware jhsware closed this as completed Jan 29, 2018
@crazy4groovy
Copy link
Author

Thank you for updating the docs 👍 I'll give it another try when I have a chance.

@crazy4groovy
Copy link
Author

P.S. I'm just using the default .babelrc config that comes with create-inferno-app

@jhsware
Copy link
Owner

jhsware commented Jan 30, 2018

@crazy4groovy just give me a ping if you run into more issues!

I think you'll be fine if you import from the /dist route.

@crazy4groovy
Copy link
Author

Sweet thanks.

I noticed a couple of your other projects reference /lib in their README docs, not sure if those need to get updated as well..

@jhsware
Copy link
Owner

jhsware commented Jan 31, 2018

Good point! I'll take a look at that, thank's for good feedback!

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