Skip to content

Uncaught TypeError: Cannot read property 'id' of null #125

@leedongwei

Description

@leedongwei

Steps to reproduce

This is a weird issue to reproduce as it appears on staging/production build only. I can't tell if it's Webpack that's creating the problem, or it appears due to latency between client/server.

Stacktrace points to this line of code that's causing issues. It may be a similar issue to #111.

To cause the error, I create then delete a document. I am working around it by setting listStrategy: always. Sorry for the scant report, I'll update when I have more info.

Expected behavior

No errors

Actual behavior

Uncaught TypeError: Cannot read property 'id' of null
    at feathers-reactive.js:498
    at Array.filter (<anonymous>)
    at a (feathers-reactive.js:497)
    at feathers-reactive.js:505
    at t.accumulator (feathers-reactive.js:538)
    at t._tryNext (feathers-reactive.js:10214)
    at t._next (feathers-reactive.js:10207)
    at t.next (feathers-reactive.js:3386)
    at t.notifyNext (feathers-reactive.js:8913)
    at t._next (feathers-reactive.js:2613)
    at t.next (feathers-reactive.js:3386)
    at t._next (feathers-reactive.js:8635)
    at t.next (feathers-reactive.js:3386)
    at t._next (feathers-reactive.js:8635)
    at t.next (feathers-reactive.js:3386)
    at r.a (feathers-reactive.js:4689)
    at r.emit (index.js:133)
    at r.onevent (socket.js:275)
    at r.onpacket (socket.js:237)
    at r.<anonymous> (index.js:21)
    at r.emit (index.js:133)
    at r.ondecoded (manager.js:345)
    at s.<anonymous> (index.js:21)
    at s.r.emit (index.js:133)
    at s.add (index.js:251)
    at r.ondata (manager.js:335)
    at r.<anonymous> (index.js:21)
    at r.emit (index.js:133)
    at r.onPacket (socket.js:456)
    at r.<anonymous> (socket.js:273)
    at r.emit (index.js:133)
    at r.onPacket (transport.js:145)
    at r.onData (transport.js:137)
    at WebSocket.ws.onmessage (websocket.js:147)

System configuration

"@feathersjs/client": "3.5.3",
"feathers-reactive": "0.7.1",
"feathers-redux": "2.1.0",
"react": "16.2.0",
"redux": "3.7.2",

Tell us about the applicable parts of your setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions