React Native _weakMap2 error

I just updated to React Native 0.21, but I get an error when I need Parse:

var Parse = require('parse/react-native').Parse;

The error I am getting is:

undefined is not a constructor (evaluating 'new _weakMap2.default()')

I do not think this is due to Parse, although, as in the directory, the link "weakMap2" is only inside react-proxy .

Has anyone else experienced this error or found a workaround? Thank!

+4
source share
3 answers

This should be fixed in react-proxy@1.1.7.
(Do not use 2.x, it is not associated with React Native at all at the moment!)

npm install react-proxy@1.1.7, NPM . npm@2.x, npm install react-proxy@1.1.7 node_modules/react-native/node_modules/react-transform-hmr - - , , , 1.x, .

+2

, Parse JS SDK, 1.6.14 . , 1.7.1. .

npm i parse@1.6.14 --save

0

react-proxy 2.0.1, .

0

All Articles