ignaciojcano / react-awesome-gravatar

MIT License
7 stars 0 forks source link

package is broken #3

Closed fullstackwebdev closed 5 years ago

fullstackwebdev commented 5 years ago
<fullstack> Hi, I have a weird situation.  I npm install ModuleName ... and I can see it with npm ls ModuleName, and it downloads it places it in my node_modules and packages.json.. But when I import it -- or open up a terminal in the dir and require('ModuleName') it is not found. ?
<fullstack> And VS Code eslint (I think) redlines it as not found, BUT it will autocomplete it
<fullstack> react-awesome-gravatar is the module name if you want to try it
<DeltaHeavy> fullstack Show the package.json and your code.
<fullstack> in package.json: "react-awesome-gravatar": "^2.0.1", code: //import { getGravatarUrl }  from 'react-awesome-gravatar';
<DeltaHeavy> Error?
<fullstack> Unable to resolve path to module 'react-awesome-gravatar'.eslint(import/no-unresolved)
<fullstack> lol I wonder if this is the problem? [182981.079905] mce: [Hardware Error]: PROCESSOR 0:40651 TIME 1551987934 SOCKET 0 APIC 1 microcode 24
<fullstack> probably not that was a while ago 
<fullstack> I ordered a new system, AMD 2400GE micro desktop
<DeltaHeavy> fullstack Does it work when you build it?
<fullstack> no it does not
<DeltaHeavy> What's THAT error
<DeltaHeavy> This on GitHub?
<fullstack> Module not found: Can't resolve 'react-awesome-gravatar'
<fullstack> yes it is on github, here is the package.json: https://github.com/ignaciojcano/react-awesome-gravatar/blob/master/package.json
<DeltaHeavy> fullstack I mean YOUR project
<fullstack> no, my project is not on github
<fullstack> what's the channel pastebin? If I npm init -y, npm install it, and node> var asdf = require('' it fails
* Topic for #Node.js is: Can't talk? Get registered on freenode ( https://git.io/vaTS2 ) | Latest: v11.11.0 (LTS: Dubnium v10.15.3, Carbon v8.15.1, Boron v6.17.0; EOL: Argon v4.9.1, v9, v7, <= v5) | Mission Statement: http://bit.ly/node-irc-mission-statement | Logs: http://logs.nodejs.org/node.js/index | On codes of conduct: http://j.mp/1RFlyvr http://blog.izs.me/post/30036893703/polic
* Topic for #Node.js set by ljharb!sid43720@oftn/oswg-member/ljharb (Wed Mar  6 12:55:07 2019)
<DeltaHeavy> fullstack It only uses a default export
<DeltaHeavy> nvm
<DeltaHeavy> !gist @ fullstack
<ecmabot> fullstack: Paste code at https://gist.github.com (or a similar site) and name the file .js so that we can look over it. Thanks!
<ljharb> fullstack:   Because that package is broken
<ljharb> fullstack: see the “main” in https://unpkg.com/react-awesome-gravatar@2.0.1/package.json
<fullstack> https://gist.github.com/fullstackwebdev/39cc149e38408a701dd87a3e74f711a0
<ljharb> fullstack: and see how https://unpkg.com/react-awesome-gravatar@2.0.1/dist/ doesn’t have an index.js
<ljharb> fullstack: and see how https://unpkg.com/react-awesome-gravatar@2.0.1 404s?
<ljharb> the package is just broken.
<fullstack> thank you ljharb
ignaciojcano commented 5 years ago

Hi @fullstackwebdev, Thanks for the report, I've updated to version 2.0.2 (just published to NPM) It fixes this issue and also bump some vulnerabilities.