ical.js icon indicating copy to clipboard operation
ical.js copied to clipboard

Unable to resolve module `fs`

Open agersoncgps opened this issue 7 years ago • 5 comments

If fs is a dependency, shouldn't it be required by this modules packages.json?

agersoncgps avatar Oct 07 '17 21:10 agersoncgps

fs is a core Node module, so no, you don't need to require it.

takkaria avatar Oct 08 '17 11:10 takkaria

Any idea why I am getting the error "Unable to resolve module fs"

agersoncgps avatar Oct 08 '17 17:10 agersoncgps

It's hard to say without more context. I assume it might be a broken Node installation, though.

takkaria avatar Oct 09 '17 00:10 takkaria

I am using React Native. I think that is it.

agersoncgps avatar Oct 09 '17 16:10 agersoncgps

A temporary solution for RN is to directly paste ical.js into your project and require it.

The reason is that RN doesn't have fs implemented.

Sw0rdstream avatar Dec 17 '17 19:12 Sw0rdstream