Using dagrejs.js unable to start react app, running into error Module parse failed: Unexpected character '#'

109 views Asked by At

Using Node version v14.17.1, babel-loader version 8.1.0

./node_modules/@dagrejs/graphlib/lib/graph.js 18:2
Module parse failed: Unexpected character '#' (18:2)
File was processed with these loaders:
 * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js  
You may need an additional loader to handle the result of these loaders.
|
| class Graph {
>   #isDirected = true;
|   #isMultigraph = false;
|   #isCompound = false;

Tried using webpack to exclude node_modules/. Tried updating the node version to v17.0.0

0

There are 0 answers