I followed the setup instructions and got the following error at runtime:
SyntaxError: /lib/index.js: Identifier 'Profiler' has already been declared. (3:9)
1 | import { onRenderCallBack$ } from "babel-plugin-wrap-profiler/lib/profiler-utils";
2 | import { Profiler } from "react";
3 | import { Profiler } from "react";
index.js
import { onRenderCallBack$ } from "babel-plugin-wrap-profiler/lib/profiler-utils";
import { Profiler } from "react";
import { Profiler } from "react";
Other components show Profiler being imported multiple times in the same import statement:
import { onRenderCallBack$ } from "babel-plugin-wrap-profiler/lib/profiler-utils";
import React, { Profiler, Profiler, Profiler, Profiler, Profiler, Profiler, Profiler, Profiler, Profiler, Profiler, Profiler } from 'react';
Project Details:
- Expo managed React Native Project: v5.4.3
- node: v14.19.0
- @babel/core: 7.12.9
I followed the setup instructions and got the following error at runtime:
index.js
Other components show Profiler being imported multiple times in the same import statement:
Project Details: