dt-sql-parser
dt-sql-parser copied to clipboard
tsc编译报错
版本信息
- dt-sql-parser版本:4.0.0-beta.2.2
- tsc版本:4.5.4
$ tsc -v
Version 4.5.4
报错信息
执行npx tsc,报错如下:
node_modules/dt-sql-parser/dist/lib/flinksql/FlinkSqlParserListener.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof FlinkSqlParserListener;
~
node_modules/dt-sql-parser/dist/lib/flinksql/FlinkSqlParserVisitor.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof FlinkSqlParserVisitor;
~
node_modules/dt-sql-parser/dist/lib/generic/SqlParserListener.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof SqlParserListener;
~
node_modules/dt-sql-parser/dist/lib/generic/SqlParserVisitor.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof SqlParserVisitor;
~
node_modules/dt-sql-parser/dist/lib/hive/HiveSqlListener.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof HiveSqlListener;
~
node_modules/dt-sql-parser/dist/lib/hive/HiveSqlVisitor.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof HiveSqlVisitor;
~
node_modules/dt-sql-parser/dist/lib/plsql/PlSqlParserListener.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof PlSqlParserListener;
~
node_modules/dt-sql-parser/dist/lib/plsql/PlSqlParserVisitor.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof PlSqlParserVisitor;
~
node_modules/dt-sql-parser/dist/lib/spark/SparkSqlListener.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof SparkSqlListener;
~
node_modules/dt-sql-parser/dist/lib/spark/SparkSqlVisitor.d.ts:4:16 - error TS1005: '(' expected.
4 constructor: typeof SparkSqlVisitor;
~
Found 10 errors.
@GongchuangSu 可以给 tsconfig.json 添加一个编译选项:
{
"compilerOptions": {
"skipLibCheck": true
}
}
@wewoor 尝试过,还是一样的报错
求助 碰到了同样的问题 版本信息: "typescript": "~3.9.3", "dt-sql-parser": "^4.0.0-beta.2.2",
build时候报错 npm run serve时候不报错
