lichess-org / chessground

Mobile/Web chess UI for lichess.org
https://lichess.org
GNU General Public License v3.0
1.02k stars 262 forks source link

added moduleResolution to tsconfig so it can install dependencies successfully #238

Closed zevaverbach closed 1 year ago

zevaverbach commented 1 year ago

Before making this change, I was getting the following error:

yarn install v1.22.17
...
$ tsc --outDir . --sourceMap --declaration
../../../../../../node_modules/@types/trusted-types/index.d.ts:10:22 - error TS2792: Cannot find module './lib'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?

10 import * as lib from './lib';
                        ~~~~~~~

Found 1 error in ../../../../../../node_modules/@types/trusted-types/index.d.ts:10

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Afterwards, I'm able to run yarn install without any problems.

niklasf commented 1 year ago

Thanks! Never seen this error, and also not happening in CI, but setting moduleResolution is good in any case.