score:15
i'm still investigating but it looks like addlocaledata was removed as a breaking change for v3.
https://formatjs.io/docs/react-intl/upgrade-guide-3x
this was a bit confusing for me too because a lot of the tutorials and guides out there still use addlocaledata.
score:0
probably not the ideal solution but downgrading react-intl to ^2.8.0
is a quick and easy option.
score:1
the historical context is that react-intl
was written back when intl.pluralrules
& intl.relativetimeformat
did not exist. fast forward to now, intl.pluralrules
is officially in the intl js spec, and intl.relativetimeformat
is stage 3 so we've changed the strategy for locale-data to polyfills instead on browsers that don't have those apis.
Source: stackoverflow.com
Related Query
- Getting error when try to use React Router v6: Attempted import error: 'Action' is not exported from 'history'
- error in react " Attempted import error: 'TodoItem' is not exported from './Todoitem'. "
- Attempted import error : 'createLocation' is not exported from 'history'
- Faced this error while using React-Hook-Form and YupResolver: Attempted import error: 'set' is not exported from 'react-hook-form' (imported as 'o')
- Attempted import error : 'required' is not exported from 'yup'
- Received error Attempted import error: 'NotificationsNoneIcon' is not exported from '@material-ui/icons'
- error Attempted import error: 'NotificationsNoneIcon' is not exported from '@material-ui/icons'
- react + mobx example Attempted import error: 'useObservable' is not exported from 'mobx-react-lite'
- Attempted import error: 'Switch' is not exported from 'react-router-dom'
- Attempted import error: 'useHistory' is not exported from 'react-router-dom'
- Attempted import error: 'alpha' is not exported from '@material-ui/core/styles'
- How to fix error: Attempted import error: 'Route' is not exported from 'react-router-dom'
- Attempted import error: 'useDispatch' is not exported from 'react-redux'
- Attempted import error: 'Icon' is not exported from 'antd'
- Attempted import error: 'useRouteMatch' is not exported from 'react-router-dom'
- Attempted import error: 'addLocaleData' is not exported from 'react-intl'
- Attempted import error: 'shouldUseActivityState' is not exported from 'react-native-screens'
- Attempted import error: 'makeStyles' is not exported from '@material-ui/core/styles'
- Attempted import error: 'App' is not exported from './App'
- Attempted import error: 'Grid' is not exported from 'react-bootstrap'
- Attempted import error: 'useControlled' is not exported from '@material-ui/core/utils'
- Attempted import error: 'Routes' is not exported from 'react-router-dom'
- Attempted import error: 'behavior' is not exported from 'd3'
- Attempted import error: 'unstable_useId' is not exported from '@material-ui/core/utils' (imported as 'useId')
- Attempted import error: 'default' is not exported from '../assertThisInitialized/_index.mjs'
- Attempted import error: 'Sonnet' is not exported from 'react-bootstrap'
- Attempted import error: 'fade' is not exported from '@material-ui/core/styles'
- Attempted import error: 'createGlobalStyle' is not exported from 'styled-components'
- Attempted import error: 'withTranslation' is not exported from 'react-i18next'
- Attempted import error: 'Switch' is not exported from 'react-router'
More Query from same tag
- Update a nested state in a reducer React Redux
- Set value in Select (Input) of reactstrap
- 400 Bad request while fetching data in post call
- Semantic UI styled issue
- React.js and rich datagrid components OR at least hack [2015]
- How should I modify my css to make the image getting closer to my text when I narrow the browser?
- Retain callback between rerenders
- Why does asynchronous function cause PropTypes to be null
- React web application proxy
- Mapping over array and rendering result
- how to use ref in multi-step registration in react es6?
- Do not render component for routes that have /:id
- is sending state of current component as a parameter to another external method possible in react
- Mapping styled JSX input elements is not behaving as expected
- Why is my Axios fetch giving CORS errors?
- Getting an "Exported queries are only executed for Page components." in Gatsby when trying to generate pages
- connectDragSource for Each Element in map (Drag and Drop: React DnD)
- setFieldsValue does not re-render form value
- Where is Children from mapStateToProps in redux official todo example?
- Duplicate YouTube iframe embed video playback
- How to declare plugin options, using typescript and react-chartjs-2
- There are multiple InputBase components inside a > FormControl
- Where should I put the state for two components that are only rendered together in the router component?
- Reactjs is unable to establish socket connection, it opens and getting response while calling on componentDidMount
- react useState (one variable only) with typescript
- What is causing the function to run twice in a react component where there seems to be no prop/state/context change?
- How to rotate component in MUI v5?
- Calculate how many lines will be used in div?
- How to test a potential null value from an async void function without using @ts-ignore in TypeScript
- React syntax question for React.ComponentProps