From 91a718f3671cf7501bb9f91bb3aa150eb7baca60 Mon Sep 17 00:00:00 2001 From: Urvesh Ghoderao Date: Thu, 28 Jul 2022 16:25:04 +0530 Subject: [PATCH] Fixed JSX Warnings --- patch.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/patch.js b/patch.js index d20ebca6..40861b21 100644 --- a/patch.js +++ b/patch.js @@ -52,6 +52,13 @@ async function fixBrowserCheck(path) { fixedXmlHttpRequestFile, ) + //Fix Vue JSX conflict with react-native jsx + const vueJsxTypeDef = await fs.readFile('node_modules/vue/types/jsx.d.ts', { + encoding: 'utf8', + }) + const fixVueJsxTypeDef = vueJsxTypeDef.replaceAll('JSX', 'JSX_NOT_REQUIRED') + await fs.writeFile('node_modules/vue/types/jsx.d.ts', fixVueJsxTypeDef) + try { await fs.rename( 'node_modules/superstruct/lib/index.cjs',