-
Notifications
You must be signed in to change notification settings - Fork 109
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: Can't resolve 'fs' #126
Comments
Try following their Using SDK with Webpack instructions. ember-auto-import is implemented on top of webpack, deliberately because so many other libraries out there already have documented support for how to make it work. Alternatively, if the dependency on
That assumes the library isn't really going to try to use |
@ef4 thanks Edward that worked like a charm!
|
@ef4 Do you have any suggestions for handling the same issue when using it in an ember add-on? I can add the recommended code to |
@ef4 To answer my own question about, i just added the following to the index file for the add-on: const merge = require ('lodash.merge');
module.exports = {
// ...
included (app) {
this._super (...arguments);
merge (app.options, {
autoImport: {
webpack: {
node: {
fs: 'empty'
}
}
}
});
},
}; I do not know if this is the right way since I am changing the application options on-the-fly, but it works. If you have a better suggestion, then please let me know. Update: This approach worked with the dummy test application, but did not work when using the add-on in an ember application. |
in webpack 5 must be
|
Hello, I installed ember-auto-import and getting errors with a package https://github.com/aws/aws-iot-device-sdk-js
Any ideas?
Possibly related: webpack-contrib/css-loader#447
The text was updated successfully, but these errors were encountered: