react-native
react-native copied to clipboard
node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js:18:12: error: Expected "from" but found "{"
New Version
0.68.2
Old Version
0.64.3
Build Target(s)
esbuild for web preview
Output of react-native info
Issue and Reproduction Steps
Im just running esbuild cmds to build the index.html and preview in web.
But it breaks with the below error.
The above error mentioned file (ReactFabric.js) contains
import type {ReactFabricType} from './ReactNativeTypes';
This line throws the error as **Expected "from" but found "{"**
Whereas ReactNativeViewConfigRegistry.js file contains
import {type ViewConfig} from './ReactNativeTypes';
How to resolve this issue ?
Hi! I see that you are trying to migrate an app from an older version to the 0.68.2.
We prepared some resources to help our users in the migration. They are:
- A guide
- A sample repo with a steb-by-step guide to migrate your app
Hello @bandhavya! Could you please share the version of Node.js that you are using. Quick mitigation would probably be to upgrading to the latest version.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
Closing as the author is unresposnive