Error [ERR_REQUIRE_ESM]: require() of ES Module /__w/chemotion_ELN/chemotion_ELN/node_modules/@complat/react-spectra-editor/node_modules/d3/src/index.js from /__w/chemotion_ELN/chemotion_ELN/node_modules/@complat/react-spectra-editor/dist/components/d3_line/line_focus.js not supported.
Instead change the require of index.js in /__w/chemotion_ELN/chemotion_ELN/node_modules/@complat/react-spectra-editor/dist/components/d3_line/line_focus.js to a dynamic import() which is available in all CommonJS modules.
This can be fixed by changing from import * as d3 from 'd3'; to const d3 = require('d3');
The error is
This can be fixed by changing from
import * as d3 from 'd3';
toconst d3 = require('d3');