3

I have installed the saver file using

npm install @ types/file-saver --save-dev

Why can't I find the module?

and show this in my project: Module not found: Error: Can't resolve 'file-saver' in 'D:\myAngular\src\app\admin\product'

1 Answer 1

9

You have only installed @types/file-saver which is just the type definitions for the actual file-saver package and need to install the latter independently.

npm i file-saver

See this link for a simple example if you're still getting errors.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.