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

A valid design node should be passed in order to tokenize it into a reflect widget #180

Open
softmarshmallow opened this issue Sep 3, 2022 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@softmarshmallow
Copy link
Member

softmarshmallow commented Sep 3, 2022

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.

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

@softmarshmallow softmarshmallow added the good first issue Good for newcomers label Sep 3, 2022
@softmarshmallow softmarshmallow self-assigned this Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant