Closed lnedialkov closed 4 years ago
I was facing the same issue while using shpjs in Typescript. It would be great if the author could merge this pull request.
this library uses commonjs modules everywhere, note the require on the line above your change, I don't understand what you are trying to do here
from the other thing you just need to do import * as shapefile from 'shpjs';
Fixing Uncaught TypeError: Cannot assign to read only property 'exports' of object '[object Object]' in Angular 10