DEV Community

Discussion on: Building a sentiment analysis app with Node.js

Collapse
 
jinglescode profile image
Jingles (Hong Jing)

Pretty cool project. I tried natural package, and I had lots of

Module not found: Error: Can't resolve 'fs'

Even though I manually npm install fs

Not sure why..

Collapse
 
ebenezer profile image
Ebenezer Don

Hi Jingles, what command did you use for installing the natural package?

Collapse
 
jinglescode profile image
Jingles (Hong Jing)

npm install natural

I even deleted the entire node_modules, because I'm building on top of my existing repo.

And then npm install --save natural. Then npm install, to install all my existing packages.

Thread Thread
 
ebenezer profile image
Ebenezer Don

I'm not sure why this is the case. Can you fork/clone the repo and run npm install. Let's see if you'll still get the same error.

Thread Thread
 
jinglescode profile image
Jingles (Hong Jing)

Hey Ebenezer, I just tried your repo, works beautifully. 🤔

Thread Thread
 
ebenezer profile image
Ebenezer Don

Oh cool. Is yours a React application? Might be a Webpack issue.