Skip to content

[bug] Received `true` for a non-boolean attribute `tooltip`

The tooltip prop gives this error when using it according to the documentation:

<ReactTimeAgo
  date={new Date()}
  tooltip
  timeStyle="twitter-minute-now"
/>
home:17 Warning: Received `true` for a non-boolean attribute `tooltip`.

If you want to write it to the DOM, pass a string instead: tooltip="true" or tooltip={value.toString()}.
    at p
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Typography (http://localhost:3000/static/js/bundle.js:19146:87)
    at ReactTimeAgo (http://localhost:3000/static/js/vendors-node_modules_react-time-ago_modules_ReactTimeAgo_js.chunk.js:299:27)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Box (http://localhost:3000/static/js/bundle.js:23882:72)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Box (http://localhost:3000/static/js/bundle.js:23882:72)
    at a
    at LinkWithRef (http://localhost:3000/static/js/bundle.js:109627:7)
    at http://localhost:3000/static/js/bundle.js:11428:66
    at ButtonBase (http://localhost:3000/static/js/bundle.js:14038:82)
    at http://localhost:3000/static/js/bundle.js:11428:66
    at CardActionArea (http://localhost:3000/static/js/vendors-node_modules_mui_material_Avatar_Avatar_js-node_modules_mui_material_CardActionArea_C-cf9257.chunk.js:393:82)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Paper (http://localhost:3000/static/js/bundle.js:17059:83)
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Card (http://localhost:3000/static/js/bundle.js:15050:82)
    at HomeListItem (http://localhost:3000/static/js/src_Pages_Home_tsx.chunk.js:827:5)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Box (http://localhost:3000/static/js/bundle.js:23882:72)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Box (http://localhost:3000/static/js/bundle.js:23882:72)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Box (http://localhost:3000/static/js/bundle.js:23882:72)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Box (http://localhost:3000/static/js/bundle.js:23882:72)
    at HomeMainContent (http://localhost:3000/static/js/src_Pages_Home_tsx.chunk.js:1203:5)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Container (http://localhost:3000/static/js/vendors-node_modules_mui_material_CardContent_CardContent_js-node_modules_mui_material_Contai-02f612.chunk.js:349:19)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Box (http://localhost:3000/static/js/bundle.js:23882:72)
    at Home (http://localhost:3000/static/js/src_Pages_Home_tsx.chunk.js:2243:81)
    at Suspense
    at RenderedRoute (http://localhost:3000/static/js/bundle.js:110915:5)
    at Outlet (http://localhost:3000/static/js/bundle.js:111320:26)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Box (http://localhost:3000/static/js/bundle.js:23882:72)
    at div
    at http://localhost:3000/static/js/bundle.js:11428:66
    at Box (http://localhost:3000/static/js/bundle.js:23882:72)
    at QueryClientProvider (http://localhost:3000/static/js/bundle.js:142273:5)
    at QueryParamProviderInner (http://localhost:3000/static/js/bundle.js:120714:5)
    at ReactRouter6Adapter (http://localhost:3000/static/js/bundle.js:120648:5)
    at QueryParamProvider (http://localhost:3000/static/js/bundle.js:120734:5)
    at Suspense
    at ErrorBoundary (http://localhost:3000/static/js/bundle.js:106450:5)
    at TourProvider (http://localhost:3000/static/js/bundle.js:136824:7)
    at Layout (http://localhost:3000/static/js/bundle.js:177:5)
    at RenderedRoute (http://localhost:3000/static/js/bundle.js:110915:5)
    at RenderErrorBoundary (http://localhost:3000/static/js/bundle.js:110866:5)
    at Routes (http://localhost:3000/static/js/bundle.js:111405:5)
    at Router (http://localhost:3000/static/js/bundle.js:111343:15)
    at RouterProvider (http://localhost:3000/static/js/bundle.js:111189:5)
    at Suspense
    at App (http://localhost:3000/static/js/bundle.js:606:83)
    at InnerThemeProvider (http://localhost:3000/static/js/bundle.js:23099:70)
    at ThemeProvider (http://localhost:3000/static/js/bundle.js:22804:5)
    at ThemeProvider (http://localhost:3000/static/js/bundle.js:23118:5)
    at Provider (http://localhost:3000/static/js/bundle.js:106865:5)

It also throws this error before:

home:17 Warning: React does not recognize the `verboseDate` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `verbosedate` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
Edited by Maurici Abad