React&redux - Feathers-Rematch snapshotPlugin error

Asked

Viewed 22 times

0

I am assisting in the development of an "APP" using Reactjs and Redux, Feathersjs...

The whole project runs 100% on the Mac, but when you do git pull and run on Windows the project has a snapshot problem, a Feathers-Rematch plugin...

Has anyone ever had this kind of trouble...

Library used..:

import { init, realtime, snapshot, auth } from 'feathers-rematch/dist/feathers-rematch.esm.js';

Err..:

Uncaught Typeerror: Object(...) is not a Function At object.. /src/Feathers.js (Feathers.js:52)

Code line..:

52 | const snapshotPlugin = snapshot();

  • The mistake apparently is specific to the package, it’s a good you open a issues in the developers repository.

  • If it is possible to reproduce the error in a code that can share with us in full so that we can assist you in the best way possible, before pointing the finger to someone else’s library I would really like to know how is your code, good by fully kicking (Since you can’t understand much with this minute snippet of code) I had a similar problem when using an object as a function, in short I simply forgot the new rs, if Snapshot is an object should be instantiated with const snapshotPlugin = new snapshot();

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.