Skip to content
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

[HELP] Issues with luma.gl not being found ?? #254

Open
diabeetus79 opened this issue Jul 27, 2022 · 1 comment
Open

[HELP] Issues with luma.gl not being found ?? #254

diabeetus79 opened this issue Jul 27, 2022 · 1 comment

Comments

@diabeetus79
Copy link

Hi,
So I am relatively new to TS so this issue may just be a dumb issue but how do I get this error to go away? I've npm installed deck.gl-typings into my application where we had our own typings (as we wanted to use the danmarshall typings now). However, this error comes up on the build pipeline and I have absolutely no clue how to resolve it...
image

@danmarshall
Copy link
Owner

Hi @diabeetus79, Sorry about the confusion, as this project is in a state of flux. In a perfect world, we wouldn't need @danmarshall/deckgl-typings when deck.gl will provide its own types.

I created a fresh repo and then hit the same issue you're having. As of now, @luma.gl is providing its own typings in several subprojects, so here's what you'll need altogether:

  "devDependencies": {
    "@danmarshall/deckgl-typings": "^4.9.24",
    "@types/node": "^18.6.1",
    "typescript": "^4"
  },
  "dependencies": {
    "@luma.gl/engine": "^8.5.16",
    "@luma.gl/experimental": "^8.5.16",
    "@luma.gl/gltools": "^8.5.16",
    "@luma.gl/webgl": "^8.5.16",
    "luma.gl": "^7.3.2"
  }

Also note if you have a build problem, look at your node_modules\@types folder and see if you have the same deck.gl folder structure as you do in node_modules\@danmarshall\deckgl-typings. If not, uninstalling and reinstalling will copy it there for you:

npm un @danmarshall/deckgl-typings
npm i @danmarshall/deckgl-typings -D

Sometimes when npm installing other stuff, these get purged 😐

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

2 participants