commercetools / commercetools/nodejs
Custom Objects Importer error regeneratorRuntime is not defined
- Lenguaje dominante
- JavaScript
- Estrellas
- 77
- Forks
- 70
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
### 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.
Guía de contribución
Línea de trabajo
Reproduce el fallo con Node 16.14.2 y npm 6.14.7; después, inspecciona lib/main.js alrededor de la línea 151 y los pasos de bundle de Babel o Webpack mencionados en el informe. Se considera completado cuando Custom Objects Importer se ejecuta sin el error de regeneratorRuntime.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- babel, javascript, node.js, webpack
- Área
- tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100