ERROR in ./node_modules/request/lib/har.js Module not found: Error: Can't resolve 'fs' in
'/home/**/Desktop/**/***/node_modules/request/lib'
ERROR in ./node_modules/Twilio/lib/base/RequestClient.js Module not found: Error: Can't resolve 'fs' in
'/home//Desktop//***/node_modules/twilio/lib/base'
Asked
Active
Viewed 968 times
1

Fatemeh Abdollahei
- 3,040
- 1
- 20
- 25

Vishal Nayi
- 11
- 2
1 Answers
1
fs
is a core module of node.js and this package as seen in here: https://www.npmjs.com/package/twilio - is a package for node - i.e for the server-side which has access to core modules. You are trying to use a core module on the client-side which doesn't have access to core modules. (it's running over the browser).

Naor Levi
- 1,713
- 1
- 13
- 27
-
What did you try? It's not possible to use this package on the client-side. – Naor Levi Dec 30 '19 at 08:58