LongTengDao / j-toml

A Node.js implementation of TOML written by LongTengDao. Belong to "Plan J"./龙腾道为汤小明语写的 Node.js 实现。从属于“简计划”。
https://npmjs.com/package/@ltd/j-toml
GNU Lesser General Public License v3.0
55 stars 6 forks source link

使用的时候遇到了一个报错 #28

Closed DarrenLuo closed 1 year ago

DarrenLuo commented 1 year ago
ERROR in ./node_modules/@ltd/j-toml/index.js 356:28
Module parse failed: Unexpected token (356:28)
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
| 
| class mark {
>                        lineIndex = lineIndex;
|                        type                                                                                           ;
|                        restColumn        ;
LongTengDao commented 1 year ago

Your parser doesn't support class field syntax. Update webpack version to resolve this.