I just upgraded from Cypress 9 to 10. A part of the upgrade is changing the cypress.json
to cypress.config.ts
which includes importing from the cypress package. Unfortunately this throws off the Meteor build tool:
// ./cypress.config.ts
import { defineConfig } from 'cypress';
export default defineConfig({
// Cypress configuration options...
})
Error:
Error: Cannot find module "/node_modules/cypress/index.js". Try installing the npm package or make sure it is not a devDependency.
I tried creating a .meteorignore
file but that did not work.
# ./.meteorignore
cypress.config.js
Any other way to fix this short of adding cypress as a dependency?
Thanks!