You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
I encountered the same problem when I trying to evaluate a piece of string which contains calls to React.createElement. And I found the reason is that node-eval used vm which created an entirely new context:
The solution is to prevent usage of vm or just use vm.runInThisContext. Additionally, I found another package named require-from-string doesn't have the problem since it used a different approach to load values from strings.
I have the following
react
code running in node.js:but react complains that
Does anybody knows why this is happening and is there something I can do?
Of course there is no warning if I execute outside of
_eval
. I should mention also that the above warning was introduced with facebook/react#6134The text was updated successfully, but these errors were encountered: