Compilation error in `react-native:0.71.8`

Author: spacestiermanCreated Jul 14, 2023Updated Oct 12, 2023

We are in the process of upgrading our native app to a new version of react-native, and we're running into a compilation issue that I've tracked down to a line of code that uses the redux-actions dependency.

Here's the offending section:

bash
import { createAction } from 'redux-actions'
...
export const setTeamError = createAction('SET_TEAM_ERROR')
...

When we include these lines, we get this react-native compile error in the Metro bundler: [Error: Exception in HostFunction: Compiling JS failed: 18:9:'import.meta' is currently unsupported Buffer size 12286 starts with: 5f5f642866756e6374696f6e2028676c]

Versions: nodejs: 18.16.0, react-native: 0.71.8, redux-actions: 3.0.0.

Is this an issue that can be fixed on redux-actions, or is this a more general error with react-native?

Source: redux-utilities/redux-actions