carto-react icon indicating copy to clipboard operation
carto-react copied to clipboard

Hygen is not working

Open efernandezleon opened this issue 2 years ago • 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

efernandezleon avatar Nov 16 '22 08:11 efernandezleon

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

borja-munoz avatar Nov 16 '22 08:11 borja-munoz

https://github.com/visgl/deck.gl/pull/7395

VictorVelarde avatar Nov 22 '22 12:11 VictorVelarde

See internal task at https://app.shortcut.com/cartoteam/story/275900/hygen-not-working-for-deck-gl-carto-8-8-18

VictorVelarde avatar Dec 05 '22 18:12 VictorVelarde