Closed rushi closed 3 years ago
This module is designed to run inside Node and not in the browser... would you like to send a PR to add such support?
In particular, createContext
is a function exported by the vm
module provided by Node core.
That's what I assumed, but had to ask.
@mcollina Not interested in working on a PR at the moment.
Hi, I'm trying to use this package in a React app to redact sensitive tokens before logging the information to a remote server and have run into a problem. I'd like some help!
The error in the console is:
However when I step into the code and look inside validator.js, the actual exception thrown is
createContext is not a function
Right now I'm simply using the code provided in the Readme, but using an
import
instead of arequire