-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with library fs #28
Comments
Thanks for the tip. This has been resolved in v2.0.0-alpha (replaced Browserify with Rollup) and does a better job using |
I installed the v2.0.0-alpha and continue with the same error. Is necessary an aditional configuration? Thanks
|
I was able to suppress this error by changing my Webpack configuration. Here's an example: module.exports = {
entry: './src/index.js',
output: {
path: __dirname + '/dist',
filename: 'bundle.js'
},
node: {
fs: "empty"
}
}; The important bit is
Reference josephsavona/valuable#9 (comment) |
Hello, I'm getting this error and I can't start my application,
ERROR in ./node_modules/pixi-sound/lib/Sound.js Module not found: Error: Can't resolve 'fs' in '/Users/davidh/Documents/Jobs/XXXX/node_modules/pixi-sound/lib' resolve 'fs' in '/Users/davidh/Documents/Jobs/XXXX/node_modules/pixi-sound/lib' Parsed request is a module using description file: /Users/davidh/Documents/Jobs/XXXX/node_modules/pixi-sound/package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration
I tried installing fs and doesn't work, I added this configuration to the webpack and continue without working
target: 'node' node: { fs: 'empty' }
The text was updated successfully, but these errors were encountered: