react-native icon indicating copy to clipboard operation
react-native copied to clipboard

node_modules/react-native/Libraries/Renderer/shims/ReactFabric.js:18:12: error: Expected "from" but found "{"

Open bandhavya opened this issue 2 years ago • 3 comments

New Version

0.68.2

Old Version

0.64.3

Build Target(s)

esbuild for web preview

Output of react-native info

Uploading Screenshot 2022-05-17 at 7.13.19 PM.png…

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. Screenshot 2022-05-17 at 7 14 58 PM

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 ?

bandhavya avatar May 17 '22 13:05 bandhavya

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:

cipolleschi avatar May 17 '22 15:05 cipolleschi

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.

dmytrorykun avatar May 23 '22 11:05 dmytrorykun

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.

github-actions[bot] avatar Jan 14 '23 01:01 github-actions[bot]

Closing as the author is unresposnive

cortinico avatar Jan 18 '23 16:01 cortinico