为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:V8
【操作系统】:Windows11
【CPU】:x64
【问题描述】*:KNEX 方言包 knex-dm 在构建工具中对常量 schema 进行了重新赋值,导致运行时报错:error: This assignment will throw because "schema" is a constant at \node_modules.pnpm\knex-dm@1.0.45146_knex@3.1.0\node_modules\knex-dm\src\query\dmdb-querycompiler.js:357:7 349 | const schema = this.single.schema; ^ note: The symbol "schema" was declared a constant here: at \node_modules.pnpm\knex-dm@1.0.45146_knex@3.1.0\node_modules\knex-dm\src\query\dmdb-querycompiler.js:349:11
修复方案可以考虑 schema 改用 let 定义
