Hi I m struggeling wit…

less than 1 minute read

Hi - I’m struggeling with something and been wondering if there’s a quick fix. I’m getting: "TypeError: Cannot assign to read only property 'exports' of object '#<Object>'" This error is supposed to happen when I’m using import and module.export in the same file. It happens to me in files that have no import at all. Going over the code base and changing all the files to ES6 modules will take about a month - is there a quick workaround for this?