To reproduce, in any JavaScript file:
As there is no loader configured for .json files, you'll get an error:
This relative module was not found:
- ./foo.json in ./app/Resources/assets/js/app.js
This makes it appear that the file wasn't found. The bug is actually inside of friendly-errors-webpack-plugin: geowarin/friendly-errors-webpack-plugin#32