Can't import module
itaydressler opened this issue ยท 20 comments
I can't seem to be able to integrate this module. (I use type script).
Keep getting this - 'Error: Can't resolve 'react-reactions' '.
Tried :
const FacebookSelector = require('react-reactions');
import * as Selectors from 'react-reactions';
import { FacebookSelector } from 'react-reactions';
None seem to work. I'll appreciate any help.
Same issue here.
Same here. I'm using yarn and the import fails to find react-reactions
despite it being in node_modules
The problem is that the main file is pointing to lib/index but there is not lib folder. There is not transpile run command either.
Do you have any suggestions on that?
Same issue here.
I am also having the same issue, Did any of you figured out the issue?
I also have the same issue. Please fix the bug.
Hey folks, here is a workaround to get the missing lib
folder created after installing your project dependencies (important, so that it will also work in CI builds etc.):
just add the following script to your package.json
:
"postinstall": "yarn --cwd ./node_modules/react-reactions/"
Hope this might help you until the bug will be finally fixed.
Any plans on fixing this one up? Ive seen there is a pull request ready to be pushed
The lib folder was not getting pushed to github as it was added on .gitignore . I faced the same problem as other commenters and cloned the repo and installed its all dependencies and compiled the project , removed lib from gitignore and tested and it worked .
For anyone facing this problem , install the fixed version of this module .
You can install it using
npm i randomdipesh/react-reactions
@randomdipesh I'm getting undefined when I'm using it, can you please help?
@raghav4 did you tried my repo?
Install it using ,
npm i randomdipesh/react-reactions
@raghav4 did you tried my repo?
Install it using ,
npm i randomdipesh/react-reactions
@randomdipesh Yes I did and it worked but I was asking how should I use it? I imported the component and used it <SlackCounter/>
but it showed nothing, what I'm asking is how do I show the emojis
Precisely I want to use the <GithubCounter/>
or <SlackCounter/>
with the support of counter values, can you please suggest me how do I use it?
Right now I'm getting this,
@raghav4 Did you end up resolving this issue? Happening to me as well
It's been so long @prathik-naidu, but what I remember is you need to pass the array of emoji's to make it work. Try doing that, let me know if that works.
Your repo is not installing on my project:
npm install randomdipesh/react-reactions
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/randomdipesh/react-reactions.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ramos\AppData\Roaming\npm-cache_logs\2021-01-03T03_53_00_993Z-debug.log
@ARamss, I have forked this repo and have published a working version of the library (with TypeScript support).
npm i @charkour/react-reactions