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

[Bug] Using with nextjs #7773

Closed
1 of 6 tasks
krish-adi opened this issue Mar 20, 2023 · 1 comment
Closed
1 of 6 tasks

[Bug] Using with nextjs #7773

krish-adi opened this issue Mar 20, 2023 · 1 comment
Labels

Comments

@krish-adi
Copy link

Description

I am trying to add deck.gl to a nextjs project. Using the example in the documentation. But I get a require() of ES module error.

Flavors

  • React
  • Python/Jupyter notebook
  • MapboxLayer
  • GoogleMapsOverlay
  • CartoLayer
  • DeckLayer/DeckRenderer for ArcGIS

Expected Behavior

No response

Steps to Reproduce

https://deck.gl/docs/get-started/using-with-react#the-deckgl-react-component

Environment

  • Framework version: 8.9.3
  • Nextjs version: 13.1.6

Logs

Server Error

Error: require() of ES Module /Users/adithya/projects/spatiali-se/app-spatiali-se/node_modules/@mapbox/tiny-sdf/index.js from /Users/adithya/projects/spatiali-se/app-spatiali-se/node_modules/@deck.gl/layers/dist/es5/text-layer/font-atlas-manager.js not supported.
Instead change the require of index.js in /Users/adithya/projects/spatiali-se/app-spatiali-se/node_modules/@deck.gl/layers/dist/es5/text-layer/font-atlas-manager.js to a dynamic import() which is available in all CommonJS modules.

@krish-adi krish-adi added the bug label Mar 20, 2023
@Pessimistress
Copy link
Collaborator

#7735

@Pessimistress Pessimistress closed this as not planned Won't fix, can't repro, duplicate, stale Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants