A valid design node should be passed in order to tokenize it into a reflect widget
softmarshmallow opened this issue · 0 comments
softmarshmallow commented
Error while adding component node design to grida project with CLI.
output below.
grida add https://www.figma.com/file/aPfdtNb1aGFIN9p05cmmVY/cors.sh\?node-id\=1%3A306
Loaded .env file
⠸ Fetching design...unhandled not while converting remote node to figma typed node. type "CANVAS" not handled
the givven node landingpage was type of CANVAS, but it is not supported yet.
✔ Fetching design...
⠋ Generating code...(node:66182) UnhandledPromiseRejectionWarning: A valid design node should be passed in order to tokenize it into a reflect widget.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:66182) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:66182) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
- Target design: https://www.figma.com/file/aPfdtNb1aGFIN9p05cmmVY/cors.sh\?node-id\=1%3A306
- Command:
grida add https://www.figma.com/file/aPfdtNb1aGFIN9p05cmmVY/cors.sh\?node-id\=1%3A306
About this issue.
Error occuring Node types: COMPONENT, INSTANCE, right under CANVAS
Seems to be happening while converting component or instance nodes that are on the root of the page, reading its' parent, which is CANVAS, seems not to be handled property by figma -> reflect tokenizer