Skip to content

Eyes-images 4.22.1 causes a require error #6

Open
@d4vidi

Description

@d4vidi

⚠️ This technically belongs in the main JS sdk project, but it has no option to submit issues -- using this project instead.

After upgrading to [email protected] in an internal project from 4.21.1 (following today's release of it) we seem to be getting this require-chain error:

InterceptedError: Unexpected error has occurred when mock server "applitools" was initializing:
 Error: Cannot find module '@applitools/core-base/types' from 'node_modules/@applitools/core/dist/types.js'

 Require stack:
   node_modules/@applitools/core/dist/types.js
   node_modules/@applitools/core/dist/index.js
   node_modules/@applitools/eyes-images/dist/api.js
   node_modules/@applitools/eyes-images/dist/index.js
<truncated>

There seem to be an issue where the inner require specified like so:
export * from '@applitools/core-base/types';

tries to yield @applitools/core-based/types/index.d.ts, and fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions