Hi.
const injectAcornStaticClassPropertyInitializer = require('acorn-static-class-property-initializer/inject');
const classFields = require('acorn-class-fields');
const js = [
{
lexer: 'JsxLexer',
attr: 'i18nKey', // Attribute for the keys
// acorn config (for more information on the acorn options, see here: https://github.com/acornjs/acorn#main-parser)
acorn: {
sourceType: 'module',
ecmaVersion: 10, // forward compatibility
injectors: [classFields, injectAcornStaticClassPropertyInitializer],
plugins: { staticClassPropertyInitializer: true, classFields: true }
}
}
];
...
[read] /project/frontend/src/app/Market/Chart/index.js
/project/node_modules/i18next-parser/dist/parser.js:70
}} catch (err) {_didIteratorError = true;_iteratorError = err;} finally {try {if (!_iteratorNormalCompletion && _iterator.return) {_iterator.return();}} finally {if (_didIteratorError) {throw _iteratorError;}}}
^
TypeError: Class extends value #<Object> is not a constructor or null
at module.exports (/project/node_modules/acorn-class-fields/index.js:30:3)
at /project/node_modules/i18next-parser/dist/lexers/javascript-lexer.js:31:48
at Array.reduce (<anonymous>)
at JsxLexer.JavascriptLexer (/project/node_modules/i18next-parser/dist/lexers/javascript-lexer.js:30:34)
at new JsxLexer (/project/node_modules/i18next-parser/dist/lexers/jsx-lexer.js:36:106)
at Parser.parse (/project/node_modules/i18next-parser/dist/parser.js:67:23)
at i18nTransform._transform (/project/node_modules/i18next-parser/dist/transform.js:70:33)
at i18nTransform.Transform._read (_stream_transform.js:190:10)
at i18nTransform.Transform._write (_stream_transform.js:178:12)
at doWrite (_stream_writable.js:410:12)
"acorn-class-fields": "^0.2.1",
"acorn-jsx": "^4.1.1",
"acorn-stage3": "^0.6.0",
"acorn-static-class-property-initializer": "^1.0.0",