-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法加载多级目录文件,examples加载案例报错找不到组件或模块 #377
Comments
修正:目录写的是 |
浏览器控制台报错信息:
|
Include 不用包含 rootDir |
include lib/components |
是的,我后来又重下试了下,单还是不行。我回家再测一下吧
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2022年07月18日 18:46 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.******@***.***> |
| 主题 | Re: [docgeni/docgeni] 无法加载多级目录文件 (Issue #377) |
Include 不用包含 rootDir
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
原来是这样,我回去再试试看
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2022年07月18日 18:47 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.******@***.***> |
| 主题 | Re: [docgeni/docgeni] 无法加载多级目录文件 (Issue #377) |
include lib/components
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
rootDir 需要相对于 cwd 根目录,也就是 package.json 目录 |
我是看template与文档。从package.json目录开始查找的,我模仿这样做,他可以加载src/lib/button但是多级无法处理,我以为我的写法有问题,尝试了很久……没想到从一开始就是错的
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2022年07月18日 18:51 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.******@***.***> |
| 主题 | Re: [docgeni/docgeni] 无法加载多级目录文件 (Issue #377) |
rootDir 需要相对于 cwd 根目录,也就是 package.json 目录
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
多级使用include,相对于 rootDir 目录试试,应该可以 |
好的(•̤̀ᵕ•̤́๑)ᵒᵏᵎᵎᵎᵎ。谢谢你。
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2022年07月18日 19:00 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.******@***.***> |
| 主题 | Re: [docgeni/docgeni] 无法加载多级目录文件 (Issue #377) |
多级使用include,相对于 rootDir 目录试试,应该可以
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
更新:切换写法后仍然不行,我昨天一直以为是libs出现了问题,我应该贴出报错信息
报错
随后我反复查看文档,对比template项目。修改项目tsconfig.json文件。成功的将template改造成多级文件目录嵌套
修改examples中module.ts中引用的别名,此时重新启动两边项目报同样的错误。 |
赞 |
我的项目文件母料结构嵌套了多级,使用
.docgenirc.js
对libs
进行调整,但始终无法加载到多级目录下的doc目录下的文件我的文件目录(使用docgeni-template)
我在
.docgenirc.js
对libs
的配置因为无法加载所以我页面展示的是一片空白.
问题:这是我修改配置有问题,还是暂不支持多级目录查找。
ps: 我反复测试了多次,应该不是我配置的问题,我按官方文档上的步骤在
src
下新建lib
将button
放在lib目录下没有任何问题,但再新建一级目录就无法加载了The text was updated successfully, but these errors were encountered: