Bundling issues with PrimeReact components

UI Components for React
Post Reply
travelbug42
Posts: 7
Joined: 23 Jun 2018, 00:41

03 Oct 2018, 23:51

When I bundle my project using Rollup, the generated ES6 code contains the following imports:

Code: Select all

import _propTypes from "commonjs-proxy:prop-types";
import _classnames from "commonjs-proxy:classnames";
import _reactDom from "commonjs-proxy:react-dom";
We narrowed it down to PrimeReact components that we imported.

At runtime, it errors out because it can't find the "common-proxy" module. Why is Primereact using commonjs-proxy instead of the modern imports?

Code: Select all

import PropTypes from "prop-types";
import classNames from "classnames";
Does anyone have a solution to this? Any help would be much appreciated.

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests