Skip to content

Conversation

@kleinfreund
Copy link
Contributor

Changes

Fix using the package producing a This expression is not callable. TypeScript error. This is due to the used version of unbuild (see unjs/unbuild#457) and was fixed in the meantime meaning that simply updating unbuild is enough to fix the issue. (Note, that 3.5.0 is the latest version of unbuild that can be installed without also updating TypeScript.)

Notes

Essentially, this change makes it so that the generated types are different in the following way:

- export { vitePreprocessor as default };
+ export = vitePreprocessor;

Avoiding the following error:

on(
  "file:preprocessor",
  vitePreprocessor({
    configFile: resolve(import.meta.dirname, "vite.config.ts"),
    mode: "development",
  }),
  // ^ This expression is not callable.
  //   Type 'typeof import("path/node_modules/cypress-vite/dist/index")' has no call signatures.ts(2349)
);

Fix using the package producing a `This expression is not callable.` TypeScript error. This is due to the used version of unbuild (see unjs/unbuild#457) and was fixed in the meantime meaning that simply updating unbuild is enough to fix the issue. (Note, that 3.5.0 is the latest version of unbuild that can be installed without also updating TypeScript.)
@mammadataei mammadataei merged commit cee8331 into mammadataei:main Sep 9, 2025
3 checks passed
@mammadataei
Copy link
Owner

Thanks for contribution @kleinfreund.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants