Categories
Mastering Development

Migrate webpack V3 to V4 on Angular V1 – SyntaxError: Unexpected token I in JSON at position 0 at JSON.parse

I am trying to upgrade an old project that uses Angular V1. I upgraded babel, webpack, and JQUERY. JQUERY was upgraded from version 2 to 3. On npm start, which is webpack-dev-server –open –config build/webpack.dev.js1 I get the error: angular.js:15570 SyntaxError: Unexpected token I in JSON at position 0 at JSON.parse (<anonymous>) at fromJson (angular.js:1476) […]