samuk190 / localbase

A Firebase-Style Database ... Offline!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with React code.

vverma2010 opened this issue · comments

I'm not able to use it in my ReactJS project.
I tried both npm install localbase --save , npm install localbase , yarn add localbase --save & yarn add localbase , but when I'm importing it using import Localbase from 'localbase' it is showing error.

Error :
'Localbase' is declared but its value is never read.ts(6133)
Could not find a declaration file for module 'localbase'. '/home/knighthood/Desktop/Projects/ECS-Frontend/word-shelf/node_modules/localbase/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/localbase if it exists or add a new declaration (.d.ts) file containing declare module 'localbase';ts(7016)

After trying npm i --save-dev @types/localbase , I got the following errors:

knighthood@knighthood-HP-Laptop-15-bs0xx:~/Desktop/Projects/ECS-Frontend/word-shelf$ npm i --save-dev @types/localbase
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2flocalbase - Not found
npm ERR! 404
npm ERR! 404 '@types/localbase@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/knighthood/.npm/_logs/2021-01-17T12_09_37_449Z-debug.log