简体   繁体   中英

Rete Library giving error with React JS : ReferenceError: regeneratorRuntime is not defined

Rete library is giving this below error upon installing. Below is the error that I am getting.

(anonymous function)
node_modules/rete/build/rete.esm.js:413
  410 | value: function () {
  411 |   var _build = _asyncToGenerator(
  412 |   /*#__PURE__*/
> 413 |   regeneratorRuntime.mark(function _callee(node) {
  414 |     return regeneratorRuntime.wrap(function _callee$(_context) {
  415 |       while (1) {
  416 |         switch (_context.prev = _context.next) {

I found the solution. Here I have installed rete along with some other rete plugins as shown below.

npm i --save rete rete-react-render-plugin rete-connection-plugin rete-area-plugin 

Rete Library has some dependencies which could be solved by pasting the below line in the index.html file of your react js project.

<script src="https://cdn.jsdelivr.net/npm/rete@1.0.0-alpha.9/build/rete.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/rete-vue-render-plugin@0.2.0/build/vue-render-plugin.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/rete-connection-plugin@0.1.2/build/connection-plugin.min.js"></script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM