deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

deck.gl - multiple versions detected

Open HeiYanjing opened this issue 7 years ago • 3 comments

image this problem ... it's crazy . for the new version deck.gl add TileLayer. I want use TileLayer(@deck.gl/geo-layers) to add a published layer. in my package.json, all the versions about deck.gl: "@deck.gl/experimental-layers": "^6.3.0", "deck.gl": "^6.3.2", I tried match the right versions,but failed. after npm install @deck.gl/geo-layers "@deck.gl/geo-layers": "^7.1.7", image For js code: import DeckGL, {PolygonLayer, ScatterplotLayer, PointCloudLayer, HexagonLayer,GridLayer,ArcLayer, IconLayer,TextLayer, FlyToInterpolator, PathLayer,COORDINATE_SYSTEM} from 'deck.gl'; import {TripsLayer} from '@deck.gl/experimental-layers';

if I add the code: import {TileLayer} from '@deck.gl/geo-layers'; there are some warnings : image image

So.... How can I resolve it?

HeiYanjing avatar Jul 09 '19 12:07 HeiYanjing

I'd delete your node_modules folder, clear your package.json of anything deck.gl then run $ yarn add @deck.gl/react @deck.gl/layers @deck/geo-layers.

This will upgrade you to the latest version of deck.gl. TripsLayer is no-longer experimental and comes from @deck.gl/geo-layers.

I ran into a similar issue upgrading from 6.* to 7.* - the best option was just to clear out my dependencies and package.json and start again.

mayteio avatar Jul 09 '19 21:07 mayteio

@mayteio thank you for your reply . I succeeded in your way.

HeiYanjing avatar Jul 10 '19 09:07 HeiYanjing

Unfortunately just ran into this same issue with Yarn 3 (berry). Luckily the working fix is similar:

  1. rm yarn.lock
  2. yarn cache clean --all (may not be needed)
  3. yarn

davidcalhoun avatar Feb 27 '22 02:02 davidcalhoun