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

Example setup broken in fresh Vite app #883

Open
3 tasks
alexvarney opened this issue Aug 1, 2023 · 1 comment
Open
3 tasks

Example setup broken in fresh Vite app #883

alexvarney opened this issue Aug 1, 2023 · 1 comment

Comments

@alexvarney
Copy link

Describe the bug

I created a new Vite react-ts project with deck.gl/react and attempted to install Nebula and am receiving the following error:

nebula-layer.ts:2 Uncaught TypeError: Super expression must either be null or a function
    at _inherits (nebula-layer.ts:2:1)
    at nebula-layer.ts:6:22
    at node_modules/nebula.gl/dist-es6/lib/nebula-layer.js (nebula-layer.ts:33:4)
    at __require2 (chunk-TFWDKVI3.js?v=1c1382e0:18:50)
    at node_modules/nebula.gl/dist-es6/index.js (index.ts:7:1)
    at __require2 (chunk-TFWDKVI3.js?v=1c1382e0:18:50)
    at index.ts:30:1

I've attempted downgrading Vite version to 4.0.4, and updating the vite.config.ts and tsconfig.json to match those in the example repos but the error still persists.

When using Parcel instead of Vite Deck.gl loads and the Nebula tools work correctly. Here's a link to a demo repo: https://github.com/alexvarney/nebula-setup-tests

I'm guessing this is probably a Vite bug/config issue and not an issue with Nebula, but perhaps I have missed something obvious?

Actual Result

Expected Result

Reproduce Steps

Screenshots

To Do List

  • Add label and assign to milestone
  • Coding
  • Test
@torsol
Copy link

torsol commented Oct 9, 2023

Did you ever find a solution? Experiencing the same error on a fresh install now :)

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