Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

Pluggable Widget- Utilizing A React Package

$
0
0
I am writing a custom widget and would like to utilize the “react-dropdown-select” package. I have used “npm install -save react-dropdown-select” and the widget still builds fine. The second I add the “import Select from "react-dropdown-select";” to my main .jsx file the widget breaks with the following error: mxui.js?637961575632808503:66 Error: factoryThrew at d (mxui.js?637961575632808503:5:553) at mxui.js?637961575632808503:5:9535 at Me (mxui.js?637961575632808503:5:9644) at Me (mxui.js?637961575632808503:5:9280) at mxui.js?637961575632808503:5:9835 at Le (mxui.js?637961575632808503:5:9702) at Be (mxui.js?637961575632808503:5:9774) at i (mxui.js?637961575632808503:5:10909) at HTMLScriptElement. (mxui.js?637961575632808503:5:13143) Keep in mind, I haven’t even added the “” element to my HTML. Simply adding the “import” causes the widget to break. Below code builds fine: One added line of code on line 2 and the build breaks: Error Image:

Viewing all articles
Browse latest Browse all 83469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>