question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

@deck.gl/experimental-layers can't be loaded in Observable

See original GitHub issue

Actual Result

require('@deck.gl/experimental-layers@6.3.0') // => undefined
// Error: invalid module
// index.js:3 Uncaught ReferenceError: exports is not defined
//     at index.js:3

(index.js is dist/es5/index.js)

Recommended strategy (given current packaging), per https://beta.observablehq.com/@tmcw/module-require-debugger:

// window._outline, etc.
require('@deck.gl/experimental-layers@6.3.0/dist/es5/index.js').catch(() => window._outline) // => undefined

It seems to be a weird interaction with globals (specifically exports) + https://github.com/d3/d3-require

Expected Result

Object containing experimental layers.

Code Example

https://beta.observablehq.com/@mojodna/deck-gl-experimental-layers

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Pessimistresscommented, Dec 5, 2018

Any idea on the ETA of 7.0 yet?

We’re targeting January right now.

1reaction
ericsococommented, Nov 26, 2018

👋 Seth! @Pessimistress may be able to help you with this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
@deck.gl/experimental-layers can't be loaded in Observable #2456. Closed. mojodna opened this issue on Nov 21, 2018 · 7 comments.
Read more >
Layer Class - deck.gl
Layers will only see the default empty array value for the data prop until the data is loaded, at which point it will...
Read more >
deck.gl / Nathan Harris - Observable
I am a Data Visualization and UI developer. Focusing on creating SPA using React, Redux, D3.js and Jest . I also do data...
Read more >
deck.gl core layers - Yarn
Change Log. All notable changes to deck.gl will be documented in this file. For a human readable version, ...
Read more >
Custom layers — pydeck 0.6.1 documentation
Custom deck.gl layers are available in pydeck, loaded dynamically. Layers are loaded dynamically ... Code for usage of that example layer can be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found