Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing dependency on @types/ejs #147

Open
marekdedic opened this issue Feb 27, 2024 · 0 comments
Open

Missing dependency on @types/ejs #147

marekdedic opened this issue Feb 27, 2024 · 0 comments

Comments

@marekdedic
Copy link

Hi,
this package (and its type definitions) refences ejs, but doesn't have @types/ejs as a dependency (which it should if its types import from ejs). This leads to errors such as:

node_modules/vite-plugin-html/dist/index.d.ts:2:38 - error TS7016: Could not find a declaration file for module 'ejs'. '/home/user/repo/node_modules/ejs/lib/ejs.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/ejs` if it exists or add a new declaration (.d.ts) file containing `declare module 'ejs';`

2 import { Options as Options$1 } from 'ejs';
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

No branches or pull requests

1 participant