docgeni 自定义 publicDir 目录时,ts 提示 enableIvy 必须有 override
xzfaith opened this issue · comments
xzfaith commented
运行docgeni serve --port 4600
提示
.docgenirc.js config
/**
* @type {import('@docgeni/core').DocgeniConfig}
*/
module.exports = {
mode: "full",
title: "前端",
description: "",
docsDir: "docs",
publicDir: "public",
navs: [null],
libs: [],
};
public 里 ts 配置
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "../../tsconfig.json",
"compilerOptions": { "strict": false, "sourceMap": true },
"files": ["src/main.ts", "src/polyfills.ts"],
"include": ["src/**/*.d.ts"]
}
why520crazy commented
你使用的是哪个版本?
why520crazy commented
我猜测你继承的 tsconfig.json compilerOptions 中设置了 noImplicitOverride: true
所以导致了这个错误,你可以先设置 noImplicitOverride
为 false,或者单独给 public tsconfig 设置一下这个参数。
我会在之后的版本中,显示指定一下 enableIvy 为 override。
xzfaith commented
是的,目前单独给public tsconfig设置一下这个参数,可以正常运行呢