question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fuse install, working project compile fails relating to 'fs'

See original GitHub issue

If I install fuse (`npm i -S fuse) and recompile a working webpack project (prior to using Fuse), I get the following compile errors.

WARNING in ./~/colors/lib/colors.js
Critical dependencies:
138:29-43 the request of a dependency is an expression
 @ ./~/colors/lib/colors.js 138:29-43

WARNING in ./~/colors/lib/extendStringPrototype.js
Critical dependencies:
101:31-45 the request of a dependency is an expression
 @ ./~/colors/lib/extendStringPrototype.js 101:31-45

ERROR in ./~/fuse/lib/fuse.js
Module not found: Error: Cannot resolve module 'fs' in ./node_modules/fuse/lib
 @ ./~/fuse/lib/fuse.js 6:9-22

ERROR in ./~/uglify-js/tools/node.js
Module not found: Error: Cannot resolve module 'fs' in ./node_modules/uglify-js/tools
 @ ./~/uglify-js/tools/node.js 8:9-22

Also, there’s no src folder in the fuse install. I suspect if I could alias directly into the src folder I could bypass the issue (but not certain).

I have to remove fuse from my package.json and rm -fr node_modules/fuse in order to get it to compile correctly again.

node --version => v6.2.2

Any suggestions on how to integrate into a working project without the ‘fs’ conflict?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

13reactions
patrik-piskaycommented, Jul 16, 2016

I think you made the same mistake I just did and installed package fuse instead of fuse.js 😃

5reactions
mat2maacommented, Dec 5, 2016

Would it not make sense to have a line in the README:

To install with NPM, do the following: npm install --save fuse.js

Rather than having to follow the existing link: demo & usage and scrolling some distance down the page to find it? I think one could otherwise be forgiven for leaving off the “.js”…

Read more comments on GitHub >

github_iconTop Results From Across the Web

View topic - [SOLVED]sys-fs/fuse-2.9.9_rc1 failing to compile
I'm having a little bit of trouble installing flatpak, as sys-fs/fuse-2.9.9_rc1 is a dependency that refuses to compile.
Read more >
I get some errors related to something called “FUSE”
I get some errors related to something called “FUSE” . AppImages require a Linux technology called Filesystem in Userspace (or short FUSE)....
Read more >
Step by step installation Fuse - How-to Discussions
The main problem with FS is that the accompanying fuselibs and Uno only support older versions of the Android SDK/Build tools/Gradle/Play ...
Read more >
Develop your own filesystem with FUSE
To create a filesystem in FUSE, you need to install a FUSE kernel module and then use the FUSE library and API set...
Read more >
Installing GCC: Configuration - GNU Project
This is how we generally build GCC; building where srcdir == objdir should still work, but doesn't get extensive testing; building where objdir...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found