Module parse failed: Unexpected token. You may need an additional loader to handle the result of these loaders

When I import Attributes from ‘graphology-types’ in my .jsx file, I get this error import { Attributes } from ‘graphology-types’ ERROR in ./node_modules/graphology-types/index.d.ts 11:5 Module parse failed: Unexpected token (11:5) File was processed with these loaders: ./node_modules/source-map-loader/dist/cjs.js You may need an additional loader to handle the result of these loaders. | * Miscellaneous types. |… Read More Module parse failed: Unexpected token. You may need an additional loader to handle the result of these loaders