vue3,node版本14
yarn add @vant/g6 执行命令行后
页面报错如下:
Failed to compile.
./node_modules/ml-matrix/src/symmetricMatrix.js 8:2
Module parse failed: Unexpected character '#' (8:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| export class SymmetricMatrix extends AbstractMatrix {
| /** @type {Matrix} */
> #matrix;
|
| get size() {
解决报错
无法识别 es class的私有属性;升级下Node版本或者看下你的Babel的配置试试;