constructor must be of type 'function' on debugger mode
See original GitHub issueGoals
It is working as well without debugger mode. But on debugger mode, we are getting error when try to create Realm object with schema parameters.
Expected Results
It should work like without debugger
Actual Results
Code Sample
Version of Realm and Tooling
- Realm JS SDK Version: 2.17.0
- React Native: 0.57.1
- Client OS: Android
- Which debugger for React Native: Chrome
Issue Analytics
- State:
- Created 5 years ago
- Reactions:18
- Comments:32 (3 by maintainers)
Top Results From Across the Web
[Realm/React-Native debugger]: constructor must be of type ...
But on debugger mode, I am getting error when try to create Realm object with schema parameters. import Realm from 'realm'; class Todo...
Read more >Enhancing Debugging with the Debugger Display Attributes
The DebuggerDisplayAttribute constructor has a single argument: a string to be displayed in the value column for instances of the type.
Read more >A Brief Introduction to GDB, including its use within emacs
A debugger is a program that is used to run other programs. In a debugger, a program may be executed, debugged, or a...
Read more >TypeError: "x" is not a constructor - JavaScript - MDN Web Docs
The JavaScript exception "is not a constructor" occurs when there was an attempt to use an object or ... To do this, you...
Read more >Fixing common type problems - Dart programming language
Static errors and warnings · Undefined member · Invalid method override · Missing type arguments · Unexpected collection element type · Constructor initialization ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is related from last version of realm(v2.18.0). You should downgrade to 2.16.0. And dont forgot to check version number on package.json. It should be “realm”: “2.16.0” not “realm”: “ˆ2.16.0”. I lost 1 day for that 😤
After that, run this code for reset all packages;
watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && yarn cache clean && yarn install && yarn start -- --reset-cache
I am still getting this error with realm v2.18.0