commercetools / commercetools/nodejs

Custom Objects Importer error regeneratorRuntime is not defined

オープン
#1,801 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
77
フォーク
70
PR マージ指標
30日以内にマージされた PR はありません

説明

### Support reference number

N/A

### Description

Custom Objects Importer version 3.0.40 fails due to missing Object / Function.

```js
[OMITTED]/node_modules/@commercetools/custom-objects-importer/lib/main.js:151
var _processBatches2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(objects) {
^

ReferenceError: regeneratorRuntime is not defined
at [OMITTED]/node_modules/@commercetools/custom-objects-importer/lib/main.js:151:62
at [OMITTED]/node_modules/@commercetools/custom-objects-importer/lib/main.js:193:6
at Object. ([OMITTED]/node_modules/@commercetools/custom-objects-importer/lib/main.js:369:2)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Module.require (internal/modules/cjs/loader.js:974:19)
at require (internal/modules/cjs/helpers.js:101:18)
at Object. ([OMITTED]/index.js:2:31)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
at internal/main/run_main_module.js:17:47
error Command failed with exit code 1.
```

Node: 16.14.2
NPM: 6.14.7

### Expected Behavior

Importer executes without error.

### Current Behavior

Importer fails.

### Context

This failure has prevented our company from being able to import important information needed to best serve our customers.

### Possible Solution

The small amount of research I did around this suggests some kind of bundler related issue. Suggest looking at Babel or Webpack bundle steps.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Node 16.14.2 と npm 6.14.7 で失敗を再現し、その後 lib/main.js の 151 行目付近と、報告で言及されている Babel または Webpack のバンドル手順を調査します。Custom Objects Importer が regeneratorRuntime エラーなしで実行されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
babel, javascript, node.js, webpack
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。