Code Monkey home page Code Monkey logo

Comments (4)

aardvarkk avatar aardvarkk commented on May 25, 2024 1

OK -- so the problem can be fixed by upgrading yarn. I was using version 3.0.2, and upgrading to version 3.2.0-rc.3 fixes the problem. Examining https://github.com/yarnpkg/berry/blob/master/CHANGELOG.md for v3.1.0, it looks like perhaps the relevant line is maybe:

Direct portal dependencies for node_modules installs will now be given priority during hoisting, preventing cases when indirect regular dependencies would block the way for direct portal dependencies.

However, I don't understand what most of those words mean so it could have been something else they changed. Anyway, I think the solution to this one might be just to upgrade yarn.

from react-leaflet-google-layer.

aviklai avatar aviklai commented on May 25, 2024

@Matthias-Claes Hi,

Can you please add a codesandbox to show the issue?

from react-leaflet-google-layer.

aardvarkk avatar aardvarkk commented on May 25, 2024

I'm also seeing this issue in VS Code, but it's not reproducible in CodeSandbox. I think it's something around the fact that the type L.gridLayer.GoogleMutantOptions seems to exist as a side-effect of import 'leaflet.gridlayer.googlemutant';. For some reason, VS Code seems to import L.gridLayer.GoogleMutantOptions as an any type. Here's a screenshot of the issue:

image

from react-leaflet-google-layer.

aardvarkk avatar aardvarkk commented on May 25, 2024

I've been trying to narrow down the issue and it seems that if I remove "react-leaflet": "^3.2.2", as a dependency, the error goes away. When I add it back, the error returns. However, I have a minimal test project going that also includes react-leaflet and it doesn't seem to have the same problem, so I'm continuing to dig into it.

from react-leaflet-google-layer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.