Comments (12)
Not solved yet, somehow the error is in the spread of this.props
I don't know why.
from react-actioncable-provider.
@cpunion - Is there any update on this one? I'm getting this same issue when I use this package
from react-actioncable-provider.
Same issue, I have "babel-plugin-transform-object-rest-spread", in my plugins but still get this issue.
from react-actioncable-provider.
I am as well. Here's my package.json
in case seeing the version numbers is helpful?
"name": "mirror",
"private": true,
"dependencies": {
"@rails/webpacker": "3.5",
"babel-preset-react": "^6.24.1",
"prop-types": "^15.7.2",
"react": "^16.8.3",
"react-actioncable-provider": "^2.0.0",
"react-dom": "^16.8.3"
},
"devDependencies": {
"webpack-dev-server": "2.11.2"
}
}```
from react-actioncable-provider.
Is this resolved? How can I help this?
from react-actioncable-provider.
@jaypandya73 no, but I'm using older version and it works fine. Namely "react-actioncable-provider": "1.0.3",
from react-actioncable-provider.
@dachinat - Okay thanks. giving it try now. and it's compatible with React 16.7 right?
from react-actioncable-provider.
Yes, I'm using "react": "^16.7.0",
on that project.
Also, documentation for 1.0.3
is here https://github.com/cpunion/react-actioncable-provider/tree/1.0.3
Try not to use this.context
there though (that's another way you can do things with that version). Otherwise it all works good.
from react-actioncable-provider.
I had a similar issue recently with my project (unrelated to this package). I'll see if I can't dig through my notes and figure something out when I'm at work tomorrow.
from react-actioncable-provider.
Any updates on this?
from react-actioncable-provider.
Any updates on this?
My notes didn't contain anything other than adding babel-plugin-transform-object-rest-spread to .babelrc fixed the issue.
We didn't upgrade React, but we did upgrade several other dependencies which led to the breakage.
from react-actioncable-provider.
In my case, I pulled lib/index.js
directly into the project, as my Babel instance is not configured to transpile code in node_modules
. Once done, the spread operator at (147:12)
compiles, and I'm able to import the project.
Also, the 1.0.3
version, noted as working by @dachinat; should work as a node module, as the spread operator is not being used.
Hope this helps!
from react-actioncable-provider.
Related Issues (20)
- ActionCable returns undefined
- Declare Consumer Cable inside Component Lifecycle Method HOT 6
- createConsumer is not a function HOT 6
- New context API HOT 5
- How to check there is a connection? HOT 1
- onReceived is never called HOT 7
- Use Perform in OnConnected HOT 1
- Web-socket unsubscribes and doesn't reconnect HOT 2
- V2.0.0 error for react version HOT 1
- document is not defined on React Native HOT 5
- URL can't update accordingly
- channel disconnects and reconnects HOT 2
- React Deprecation Warnings HOT 3
- TypeError: Cannot read property 'cable' of undefined
- Warning during yarn install - [email protected]: core-js@<3 is no longer maintained - Upgrade required HOT 4
- Passing headers while establishing the contact HOT 1
- Broadcasted message from Rails ActionCable get lost sometimes
- Isomorphic app support HOT 3
- Deployment fails because of dependency HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-actioncable-provider.