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
using npm install splunk sdk
then let splunkjs = require('splunk-sdk');
throws this error
19 | // Declare a process environment so that we can set
20 | // some globals here and have interop with node
> 21 | process.env = process.env || {};
22 |
23 | module.exports = root = {
24 | Logger : require('./lib/log').Logger,
The text was updated successfully, but these errors were encountered:
Hi @AlisonWonderlandApps, this library was originally written to be imported into node projects. You'll want to run the compiled client directory through browserify (or similar tools) in order to use it with react.
For others that have asked for this, I have put up a PR to fix the error above and provide a create-react-app based example for how to use the SDK with React. Please have a look: #99
using
npm install splunk sdk
then
let splunkjs = require('splunk-sdk');
throws this error
The text was updated successfully, but these errors were encountered: