react-vertical-timeline icon indicating copy to clipboard operation
react-vertical-timeline copied to clipboard

prop-types issue

Open vikas-viki opened this issue 10 months ago • 0 comments

This is the issue

   node_modules/react-vertical-timeline-component/dist-es6/VerticalTimelineElement.js:6:48:
      6 │ var _propTypes = _interopRequireDefault(require("prop-types"));
        ╵                                                 ~~~~~~~~~~~~

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

/home/vikas/Desktop/formforge/node_modules/esbuild/lib/main.js:1477
  let error = new Error(text);

and once I separately install "prop-types" it works fine.

vikas-viki avatar Feb 27 '25 15:02 vikas-viki