antvis/G6

Bug: A TypeError occurred while writing a test demo #4596

zqqcee posted onGitHub

Describe the bug

Recently, I found an TypeError during creating a test demo to develop RectNode

Your Example Website or App

http://127.0.0.1:8080/?name=bugReproduceDemo (local)

Steps to Reproduce the Bug or Issue

  1. run npm run dev
  2. select bugReproduceDemo
  3. open console
  4. you will see this bug

Expected behavior

A circle node appears in canvas

Screenshots or Videos

<img width="1507" alt="image" src="https://github.com/antvis/G6/assets/55946653/8257663d-c445-48ff-97e4-250feccbde0a">

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

I will fix this bug in two days


fixed : Pull Request

posted by zqqcee almost 2 years ago

I think this problem is caused by that you configure type 'rect' to node.data, but 'rect' is not registered to userLib yet.

posted by Yanyan-Wang almost 2 years ago

I've created a new PR to solve this problem. #4599

posted by zqqcee almost 2 years ago

This issue will be closed, The reason for this: #4599

posted by zqqcee almost 2 years ago

Fund this Issue

$0.00
Funded

Pull requests