CartoDB/carto-react

Hygen is not working

efernandezleon opened this issue · 3 comments

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

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