react-leaflet icon indicating copy to clipboard operation
react-leaflet copied to clipboard

You may need an additional loader to handle the result of these loaders.

Open faisalseraj opened this issue 1 year ago • 2 comments

./node_modules/@react-leaflet/core/lib/path.js 10:41 Module parse failed: Unexpected token (10:41) File was processed with these loaders:

  • ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js You may need an additional loader to handle the result of these loaders. | useEffect(function updatePathOptions() { | if (props.pathOptions !== optionsRef.current) {
  const options = props.pathOptions ?? {};

| element.instance.setStyle(options); | optionsRef.current = options;

this is the error i am facing now. does anyone has any workaroung?

faisalseraj avatar Jul 25 '22 15:07 faisalseraj

I added @babel/plugin-proposal-nullish-coalescing-operator including in my babel config per stack overflow and seems to be doing the trick!

danielpowell4 avatar Jul 29 '22 00:07 danielpowell4

It is handled in another issue. I had the same problem and following this answer helped me fix this issue.

mhzendehpey avatar Jul 31 '22 07:07 mhzendehpey