You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was importing pixi-sound and got the error message:
ERROR in ./~/pixi-sound/lib/Sound.js
Module not found: Error: Can't resolve 'fs' in '/Users/daniel/Sites/osweb/node_modules/pixi-sound/lib'
@ ./~/pixi-sound/lib/Sound.js 333:17-30
@ ./~/pixi-sound/lib/deprecations.js
@ ./~/pixi-sound/lib/index.js
Apparently, the Sound module tries to use the fs (filesystem?) module to read a file from disk, but the fs module is no longer available on npm, according to the readme file of fs:
# Security holding package
This package name is not currently in use, but was formerly occupied
by another package. To avoid malicious use, npm is hanging on to the
package name, but loosely, and we'll probably give it to you if you
want it.
You may adopt this package by contacting [email protected] and
requesting the name.
Additionally, the fs module is not listed as a dependency on pixi-sound's npm page.
What's the best approach here? Replace fs with a module with similar functionality?
The text was updated successfully, but these errors were encountered:
I was importing pixi-sound and got the error message:
Apparently, the Sound module tries to use the fs (filesystem?) module to read a file from disk, but the fs module is no longer available on npm, according to the readme file of fs:
Additionally, the fs module is not listed as a dependency on pixi-sound's npm page.
What's the best approach here? Replace fs with a module with similar functionality?
The text was updated successfully, but these errors were encountered: