https://cypress.io logo
Firefox error loading dynamically imported module
# i-need-help
w
I have a pretty basic test that clicks a link and checks that the resulting page has a certain title:
Copy code
it('Post button works', () => {
  cy.contains('Posts').click();
  cy.get('h1').should('include.text', 'Posts 1–5 of ');
});
This works fine when run in chrome or electron, but fails in firefox with the error
Copy code
> error loading dynamically imported module
My site is a sveltekit site. I searched but didn't find any obvious solutions. Any suggestions?