Skip to content

Doesn't work with "Vite" #85

@Shaker-Pelcro

Description

@Shaker-Pelcro

Once installed and using this package the project breaks with this error ...

✘ [ERROR] Could not resolve "prop-types"

    node_modules/react-confirm-alert/lib/index.js:20:25:
      20 │ var _propTypes = require('prop-types');
         ╵                          ~~~~~~~~~~~~

  You can mark the path "prop-types" as external to exclude it from the bundle, which will remove
  this error. You can also surround this "require" call with a try/catch block to handle this
  failure at run-time instead of bundle-time.

I'm using vite, not Create React App (CRA), and using typescript.

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