microsoft / tsdoc

A doc comment standard for TypeScript
https://tsdoc.org/
MIT License
4.74k stars 131 forks source link

Cannot build api-demo folder #265

Closed radonirinamaminiaina closed 3 years ago

radonirinamaminiaina commented 3 years ago

I followed the tutorial in folder /api-demo. And when I try to build it, I have the error below:

Project: api-demo@0.1.0
Heft version: 0.13.9
Node version: v14.7.0

Error: Cannot read config file: my_path\tsdoc\api-demo\.eslintrc.js
Error: Failed to patch ESLint because the calling module was not recognized

System: Win 10

octogonz commented 3 years ago

I was able to confirm this problem. But it only happens if you follow the README.md instructions using npm install --no-package-lock.

Whereas if you follow the instructions using rush install then it works correctly.

octogonz commented 3 years ago

Looks like the problem is that @rushstack/eslint-patch needs to be upgraded for compatibility with the latest ESLint:

eslint-patch/CHANGELOG.md

Change Log - @rushstack/eslint-patch

This log was last generated on Fri, 30 Oct 2020 00:10:14 GMT and should not be manually modified.

1.0.6

Fri, 30 Oct 2020 00:10:14 GMT

Patches

  • Update the "modern-module-resolution" patch to support ESLint 7.8.0 and newer

1.0.5

Wed, 30 Sep 2020 18:39:17 GMT

octogonz commented 3 years ago

Here's a PR: https://github.com/microsoft/tsdoc/pull/266