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

Fails to compile #1

Closed
pekq opened this issue Jan 3, 2018 · 2 comments
Closed

Fails to compile #1

pekq opened this issue Jan 3, 2018 · 2 comments

Comments

@pekq
Copy link

pekq commented Jan 3, 2018

Hi, thanks for you efforts!
However, I'm having problems compiling this.

./node_modules/redux-persist-seamless-immutable/src/reconciler.js
Module parse failed: Unexpected token (9:19)
You may need an appropriate loader to handle this file type.

|   { debug, mergeDeep = false }
| ) => {
|   let newState = { ...reducedState };
|   // only rehydrate if inboundState exists and is an object
|   if (inboundState && typeof inboundState === 'object') {

My project uses create-react-app.
Node: v8.8.0

@hilkeheremans
Copy link
Owner

hilkeheremans commented Jan 3, 2018

Ah! I'll take a look. Give me a few hours as I have a few other things to tend to.

EDIT: OK, pretty easy to fix -- forgot this baby was using object rest spread and that it doesn't get transpiled when added as a dep. I tested this mainly on React Native where this was not an issue.

I'll add some transpilation stuff in a moment.

@hilkeheremans
Copy link
Owner

There you go, see v1.0.1.

Enjoy!

hilkeheremans pushed a commit that referenced this issue Jun 19, 2018
Ignore src and .babelrc from published package
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