Skip to content

Profiler import is added multiple times #1

@jlopez2-rbi

Description

@jlopez2-rbi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions