@deck.gl/experimental-layers can't be loaded in Observable
See original GitHub issueActual 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:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We’re targeting January right now.
👋 Seth! @Pessimistress may be able to help you with this one.