Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HAR-SDK capture bundle does not behave in the same way as the source #25

Closed
derevnjuk opened this issue Nov 15, 2021 · 0 comments · Fixed by #26
Closed

HAR-SDK capture bundle does not behave in the same way as the source #25

derevnjuk opened this issue Nov 15, 2021 · 0 comments · Fixed by #26
Assignees
Labels
Type: bug Something isn't working.

Comments

@derevnjuk
Copy link
Member

There is a problem with circular dependencies when rollup is used:

    TypeError [ERR_INVALID_ARG_TYPE]: The "superCtor" argument must be of type function. Received undefined

       8 | import { SpecStorage } from './SpecStorage';
       9 | import { first, pool, randomBytes } from '@services/share';
    > 10 | import { captureHar } from '@har-sdk/capture';
         | ^
      11 | import HttpArchive from 'har-format';
      12 | import { BadRequest } from '@tsed/exceptions';
      13 | import { OptionsWithUrl } from 'request';

      at ../../node_modules/@har-sdk/capture/dist/bundle.umd.js:33288:10
      at ../../node_modules/@har-sdk/capture/dist/bundle.umd.js:2:66
      at Object.<anonymous> (../../node_modules/@har-sdk/capture/dist/bundle.umd.js:5:2)
      at Object.<anonymous> (src/api/services/DefaultHarBuilder.ts:10:1)

See details in rollup/plugins#539 and rollup/rollup#3805

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Something isn't working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant