close

[Solved] TypeError: store.get is not a function

I am using the npm cache-manager package but I am facing the following error: TypeError: store.get is not a function. So in this article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Lets Get Start With This Article.

How TypeError: store.get is not a function Error Occurs?

I am using npm cache-manager package but I am facing the following error.

TypeError: store.get is not a function
    at Object.get (.../node_modules/cache-manager/.....

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve TypeError: store.get is not a function Error?

  1. How To Solve TypeError: store.get is not a function Error?

    To Solve TypeError: store.get is not a function Error Cache-manager is just updated their version to 5.0.0 just 7 days before so you can also update your cache-manager to 5.0.0 by running this command: npm i cache-manager@5.0.0 And now your error must be solved. Thank you.

  2. TypeError: store.get is not a function

    To Solve TypeError: store.get is not a function Error You need to update cache-manager to 4.0.0 and it will resolve your error. First of all, You need to delete node_modules folder and then delete package-lock.json file: rm -rf node_modules && rm -rf package-lock.json Then Open your Package.json file and change cache-manager version to 4.0.0 As given below: “cache-manager”: “^4.0.0”, And now run npm install from root of your project: npm install And your error is solved now, Thanks.

Solution 1: update cache-manager to 4.0.0

To Solve TypeError: store.get is not a function Error You need to update cache-manager to 4.0.0 and it will resolve your error. First of all, You need to delete node_modules folder and then delete package-lock.json file.

rm -rf node_modules
rm -rf package-lock.json

Then Open your Package.json file and change cache-manager version to 4.0.0 As given below.

"cache-manager": "^4.0.0",

And now run npm install from root of your project.

npm install

And your error is solved now, Thanks.

Solution 2: Update cache-manager to 5.0.0

Cache-manager is just updated their version to 5.0.0 just 7 days before so you can also update your cache-manager to 5.0.0 by running this command.

npm i cache-manager@5.0.0

And now your error must be solved. Thank you.

Conclusion

It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment