redux-utilities / redux-actions

Flux Standard Action utilities for Redux.
https://redux-actions.js.org
MIT License
6.51k stars 300 forks source link

Compilation error in `react-native:0.71.8` #394

Open spacestierman opened 1 year ago

spacestierman commented 1 year ago

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:

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?

BDDev commented 1 year ago

@spacestierman Is this still the case or did you find a solution?