Skip to content

doesn't deploy with CRA2 ? #24

@panzerstadt

Description

@panzerstadt
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

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