question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Icon test with warning

See original GitHub issue
  console.error node_modules/_warning@4.0.2@warning/warning.js:34
    Warning: Icon should have `type` prop or `component` prop or `children`.

  console.error node_modules/_warning@4.0.2@warning/warning.js:34
    Warning: Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon.

  console.error node_modules/_warning@4.0.2@warning/warning.js:34
    Warning: This icon 'home' has unknown theme 'This-is-the-secret'

  console.error node_modules/_warning@4.0.2@warning/warning.js:34
    Warning: This icon 'home-o' has unknown theme 'This-is-the-secret'

run:

npm test -- components/icon

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
zhang0ZGCcommented, Nov 8, 2018

@afc163 我用了preact。。知道原因了。。preact的children是默认的空数组。。

1reaction
zhang0ZGCcommented, Jan 2, 2019

@afc163 我用了preact。。知道原因了。。preact的children是默认的空数组。。

请问后来你是如何处理这个错误的?

我换成了react呀。虽然warning不影响我使用,不过怕后面还有什么问题

Read more comments on GitHub >

github_iconTop Results From Across the Web

warning icon - Free Icons
Download warning icon.This icon included in Flat style. ... Icon set. test. Categories. essential. Styles. Flat. Tags. warning · Download with Pro ...
Read more >
About Status Icons
For packages, the status icon identifies that package's test status. ... Status Icons Used in Test Center. Level. Icon. Name. Tested? Error/Warning Status ......
Read more >
Alert, danger, error, test tube, attention, caution, warning icon
Download this alert, danger, error, test tube, attention, caution, warning icon in solid style from the Education, school & learning category.
Read more >
Jestjs - FluentUI - suppress "The icon 'X' was used but not ...
According to fluent documentation: (https://github.com/microsoft/fluentui/wiki/Using-icons#test-scenarios)
Read more >
Warning - Free education icons - Flaticon
Free vector icon. Download thousands of free icons of education in SVG, PSD, PNG, EPS format or as ICON FONT.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found