Module parse failed: Unexpected token m in JSON at position 0

I had the same issue but when I check the json-loader documentation here I found out that json-loader isn’t necessary anymore in webpack version greater than or equal to 2.0.
So you could remove the json-loader from your webpack config file and everything should work assuming you import your json file appropriately import text from './titles.json'

Leave a Comment

tech