Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
faisalseraj opened this issue Jul 25, 2022 · 2 comments
Closed

Comments

@faisalseraj
Copy link

./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?

@danielpowell4
Copy link

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

@mhzendehpey
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants