-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
create-react-app test-project
cd test-project
yarn add retoggle
then import retoggle somewhere in the app
yarn build
serve -s build
it return an error:
Uncaught TypeError: Super expression must either be null or a function, not undefined
at index.js:6135
at index.js:6134
at Object.<anonymous> (index.js:6124)
at t (index.js:5602)
at Object.<anonymous> (index.js:8467)
at t (index.js:5602)
at Object.<anonymous> (index.js:7206)
at t (index.js:5602)
at Object.<anonymous> (index.js:6821)
at t (index.js:5602)
these are the two lines i added to a new CRA2 template:
import React from "react";
import { Inspector } from "retoggle";
//...
return (...
<Inspector usePortal={true} />
)
//...
Metadata
Metadata
Assignees
Labels
No labels