Nativescript 4.2 timeline-view - PullRequest
       7

Nativescript 4.2 timeline-view

0 голосов
/ 30 сентября 2018

Я запускаю timeline-view в версии 4.2 nativescrip, чтобы увидеть дерево, но у меня ошибка при просмотре графики в браузере, просто ничего не появляется и в javascript у меня есть следующее:

Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
    at redrawBackground (file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:223:32)
    at file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:320:1
times.html:223 Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
    at redrawBackground (file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:223:32)
    at file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:274:5
times.html:223 Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
    at redrawBackground (file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:223:32)
    at file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:313:9
times.html:223 Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
    at redrawBackground (file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:223:32)
    at file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:274:5
15times.html:223 Uncaught DOMException: Failed to execute 'createPattern' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
    at redrawBackground (file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:223:32)
    at file:///Users/alanneri/Documents/Nativescript/app-mrsinco/times.html:313:9

1 Ответ

0 голосов
/ 03 октября 2018

Убедитесь, что аргумент профилирования находится в app/package.json, а не в основном package.json.Полную информацию о том, как использовать временную шкалу, можно найти здесь

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...