modernweb-dev / web

Guides, tools and libraries for modern web development.
https://modern-web.dev
MIT License
2.23k stars 297 forks source link

`visualDiff` of `@web/test-runner-visual-regression` can't be imported #2804

Open jeripeierSBB opened 2 months ago

jeripeierSBB commented 2 months ago

Since version 0.10.0 of @web/test-runner-visual-regression typescript complains when trying to import visualDiff like: import { visualDiff } from '@web/test-runner-visual-regression'; (suggested by docs).

We assume that the index.d.ts which newly contains .mjs extension (export * from './browser/commands.mjs';) causes the problem. If the extension is removed, it works again.

Dependency update PR on our side with failing typescript: PR: https://github.com/sbb-design-systems/lyne-components/pull/3069 Logs: https://github.com/sbb-design-systems/lyne-components/actions/runs/10811479138/job/29990965173?pr=3069