uber / nebula.gl

A suite of 3D-enabled data editing overlays, suitable for deck.gl
https://nebula.gl/
Other
686 stars 166 forks source link

build fails in Vue with TS #866

Open radoslavirha opened 1 year ago

radoslavirha commented 1 year ago

Describe the bug

Hi, I imported nebula to my Vue project, but now TS build is failing.

Actual Result

image

Expected Result

Build should pass

Reproduce Steps

just installed

"@nebula.gl/layers": "^1.0.4",
"@nebula.gl/overlays": "^1.0.4",

Investigation

@nebula.gl/layers imports @danmarshall/deckgl-typings which imports @types/react and those types are breaking my build

I cannot exclude it from build in tsconfig (nothing is working and I don't want to include all the types except of react types which I don't need in Vue at all).

Deck.gl is not happy with nebula types, but it can be solved with few @ts-ignore s

Maybe nebula can use deck.gl types (working fine)? Or are you waiting for v9 (which should have all the types included?)?

Temporary solution

remove @types/react in postinstall script

To Do List

Thanks