docgeni / docgeni

📖 A modern, powerful and out of the box documentation generator for Angular components lib and markdown docs.(现代化的、强大的、开箱即用的 Angular 组件文档生成工具)

Home Page:https://docgeni.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docgeni 自定义 publicDir 目录时,ts 提示 enableIvy 必须有 override

xzfaith opened this issue · comments

运行docgeni serve --port 4600提示

image

.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"]
}

你使用的是哪个版本?

我猜测你继承的 tsconfig.json compilerOptions 中设置了 noImplicitOverride: true 所以导致了这个错误,你可以先设置 noImplicitOverride 为 false,或者单独给 public tsconfig 设置一下这个参数。

我会在之后的版本中,显示指定一下 enableIvy 为 override。

是的,目前单独给public tsconfig设置一下这个参数,可以正常运行呢