I have created a new project with react-slingshot starter and after running the webpack the second time I faced the following problem (persists):
The app cannot load in the browser, it keeps waiting for the response from the webpack dev server.
And in the terminal I see the error:
ENOTDIR: not a directory, stat 'node_modules/.cache/hard-source/.DS_Store/stamp'
.
I can fix it by deleting the .DS_Store
file, but that helps only until the next code change. Basically, I have to restart the webpack (and delete the file) for every source code change, which is very slow and painful feedback.
I have tried to search for this problem and stumbled on this issue. I have applied the suggestion to exclude the .DS_Store
using HardSourceWebpackPlugin.ExcludeModulePlugin
:
plugins: [
new HardSourceWebpackPlugin(),
new HardSourceWebpackPlugin.ExcludeModulePlugin([
{
test: /.*\.DS_Store/
}
]),
new webpack.HotModuleReplacementPlugin(),
...
],
But that didn't help—the problem persists.
Can you help me to somehow resolve this?