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

Hygen is not working #535

Open
efernandezleon opened this issue Nov 16, 2022 · 3 comments
Open

Hygen is not working #535

efernandezleon opened this issue Nov 16, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@efernandezleon
Copy link

The project created via the CRA template doesn't work with try to use hygen to generate new componets:

$ yarn hygen view new

yarn run v1.22.19
$ hygen view new
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/edumac/dev/workspaces/my-app/node_modules/d3-array/src/index.js from /Users/edumac/dev/workspaces/my-app/node_modules/@deck.gl/carto/dist/es5/api/layer-map.js not supported.
Instead change the require of index.js in /Users/edumac/dev/workspaces/my-app/node_modules/@deck.gl/carto/dist/es5/api/layer-map.js to a dynamic import() which is available in all CommonJS modules.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Command used to generate the project: yarn create react-app my-app --template @carto/base-3
Version of C4R: 1.4.6

@efernandezleon efernandezleon added the bug Something isn't working label Nov 16, 2022
@borja-munoz
Copy link
Contributor

borja-munoz commented Nov 16, 2022

Related to deck.gl 8.8.18. It works with earlier versions.

@VictorVelarde
Copy link
Contributor

visgl/deck.gl#7395

@VictorVelarde
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants