from the file @sentry/browser/dist/index.js. Now my question is that what is the minimal project setup to get the SDK working? What does it expect to have?
Are you referencing @sentry/browser/dist/index.js in your html page?
If so, that is the problem, you should load @sentry/browser/build/bundle.js or
our CDN https://browser.sentry-cdn.com/4.4.1/bundle.min.js
The @sentry/browser/dist/index.js is meant to be used with a bundler.
I included the bundle.js from the main HTML file and that seems to work for now. Thanks! In the future, what’s the mechanism for importing since the bundle.js doesn’t seem to be a JS module?
We already ship an esm build, we did not document it since we didn’t had time to fully test everything yet (but it seems like it works just fine). It’s in the npm package under /esm/index.js