I am trying to import sentryio into my appliction using steal 0.16.10. However every method of importing I have tried results in some kind of error. I have successfully imported sentryio but this required I map out all of the files and provide @empty reference for two more files that do not seem to exist in my project.
Currently this is what my working mappings look like:
“map”: {
“mootools/mootools”: “mootools”,
“mootools-more/mootools-more”: “mootools-more”,
“mootools-datepicker/mootools-datepicker”: “mootools-datepicker”,
“mooRainbow/mooRainbow”: “mooRainbow”,
“sinon”: “sinon/pkg/sinon”,
“qrcode”: “node_modules/qrcodejs/”,
“chai”: “chai/chai”,
“steal-mocha”: “steal-mocha/steal-mocha”,
“sentry/sentry”: “node_modules/sentry/browser/dist/index”,
“sentry/core”: “node_modules/sentry/core/dist/index”,
“sentry/minimal”: “node_modules/sentry/minimal/dist/index”,
“sentry/hub”: “node_modules/sentry/hub/dist/index”,
“node_modules/sentry/core/dist/integrations”: “node_modules/sentry/core/dist/integrations/index”,
“sentry/utils/object”: “node_modules/sentry/utils/object”,
“sentry/types”: “node_modules/sentry/types/dist/index”,
“sentry/utils/async”: “node_modules/sentry/utils/async”,
“sentry/utils/logger”: “node_modules/sentry/utils/logger”,
“sentry/utils/misc”: “node_modules/sentry/utils/misc”,
“sentry/utils/string”: “node_modules/sentry/utils/string”,
“sentry/utils/is”: “node_modules/sentry/utils/is”,
“sentry/utils/path”: “node_modules/sentry/utils/path”,
“node_modules/sentry/core/dist/integrations/dedupe”: “node_modules/sentry/core/dist/integrations/dedupe”,
“node_modules/sentry/core/dist/integrations/functiontostring”: “node_modules/sentry/core/dist/integrations/functiontostring”,
“node_modules/sentry/core/dist/integrations/sdkinformation”: “node_modules/sentry/core/dist/integrations/sdkinformation”,
“node_modules/sentry/core/dist/integrations/inboundfilters”: “node_modules/sentry/core/dist/integrations/inboundfilters”,
“node_modules/sentry/core/dist/integrations/pluggable/debug”: “node_modules/sentry/core/dist/integrations/pluggable/debug”,
“node_modules/sentry/core/dist/integrations/pluggable/rewriteframes”: “node_modules/sentry/core/dist/integrations/pluggable/rewriteframes”,
“setTimeout”: “empty”,
“setInterval”: “empty”
},
This really does not seem correct to me, especially since i need to do @empty for setTimeout, and setInterval. These two files also do not seem to exist in my project so I am wondering where they are coming from. It only tries to find these files if I begin importing all of the sentryio files.
Does anyone have suggestions or improvements I could make? I have tried several other methods of importing all of which end up giving me similar errors where it requires @core, or these setTimeout and setInterval files.