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

Could not find a declaration file for module t-writer.js #8

Open
viztastic opened this issue Sep 8, 2021 · 4 comments
Open

Could not find a declaration file for module t-writer.js #8

viztastic opened this issue Sep 8, 2021 · 4 comments

Comments

@viztastic
Copy link

viztastic commented Sep 8, 2021

Hi @ChrisCavs

Thanks so much for this library, been using it heavily (e.g. skyledge.com and fleetfoundry.com)

I'm building a new website with Angular 12 and getting this strange error when I import it into my component:

Could not find a declaration file for module 't-writer.js'. '/Users/a../node_modules/t-writer.js/dist/t-writer.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/t-writer.js` if it exists or add a new declaration (.d.ts) file containing `declare module 't-writer.js';`ts(7016)

Is there a typings file for this by any chance? Or could this be something else interfering?

Thanks in advance!

@rakeshbaral92
Copy link

The above same issue arises here too. Any solution ????

@viztastic
Copy link
Author

@rakeshbaral92 it seems this library isn't maintained anymore, I ended up switching to https://github.com/tameemsafi/typewriterjs#readme

it worked with Angular 12 perfect (checkout flowbench.io - I used it there)

@rakeshbaral92
Copy link

rakeshbaral92 commented Dec 4, 2021 via email

@Philio
Copy link

Philio commented Jan 31, 2024

I forked it and added TS type declarations and updated the build dependencies see - https://www.npmjs.com/package/@philio/t-writer.js
Using it on an Angular 17 project and works well.

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

3 participants