-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fs in webpacker #608
Comments
webpack-contrib/css-loader#447 seems related, see also https://webpack.js.org/configuration/node/ |
Rails 5.1.2 w/ Node 8.1.3 I did attempt the following but perhaps I'm incorrect
|
It should be in your Webpack configuration, so |
Thank you for the direction. Placing the |
Just had this issue as well. For anybody else dealing with this - I assume this has to do with older config files generated without this fix included. I tried adding @trendwithin's solution to the |
So I've spent some time this morning jumping out of the rabbit hole only to find myself in a briar patch and am seeking some clarification on my confusion. I was attempting to implement 'fs' into a project and this was erring out with:
Module not found: Error: Can't resolve 'fs'
My confusion in part lies with the following in configuration.yml line 6:
const { readFileSync } = require('fs')
Since this line was not coughing an error it lead me to believe there was an issue with 'fs' that I wasn't able to configure correctly. However, inspecting node_modules shows this lacking and the package has been pulled: npmjs.com/package/fsAssistance on this would be appreciated.
The text was updated successfully, but these errors were encountered: