-
Notifications
You must be signed in to change notification settings - Fork 535
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
RelativeTime component appears broken #4836
Comments
Uh oh! @Raj3110, the image you shared is missing helpful alt text. Check #4836 (comment). Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image. Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.
|
Hi, thanks for reporting. Are you able to share more about the environment where you're running into this? Are you using a framework like Next.js? |
while building our nextjs app, I got error unhandledRejection Error: Cannot find module '../node_modules/@oddbird/popover-polyfill/dist/popover-fn.js' |
Yes, using |
Hi, thanks for letting us know. We think this likely has to do with the popover polyfill mentioned in #4836 (comment). Another instance of this bug here: #4280 (comment). @keithamus do you know of any workarounds for folks using Primer who run into this? |
Description
The typing and import of RelativeTime component appears broken in v36.27.
Steps to reproduce
App.tsx
with:Type 'Date' is not assignable to type 'never'
.CodeSandbox 36.27.0 Error: Could not find module in path: '@primer/react/lib/node_modules/@oddbird/popover-polyfill/dist/popover-fn.js' relative to '/node_modules/@primer/react/lib/TooltipV2/Tooltip.js'
CodeSandbox 35.10.0: Error:
Module '"@primer/react"' has no exported member 'RelativeTime'
.Version
v36.27
Browser
Chrome, Firefox
The text was updated successfully, but these errors were encountered: