Open jmlee337 opened 7 months ago
looks like
export { type StatComputer, type StatOptions, Stats } from "./stats";
from src/slippi/stats/index.ts somehow becomes
src/slippi/stats/index.ts
export { type, StatComputer, type, StatOptions, Stats } from "./stats";
in slp-enforcer/dist/slippi/stats/index.d.ts in the exported module which tsc doesn't like
slp-enforcer/dist/slippi/stats/index.d.ts
tsc
PS C:\Users\jmlee337\Documents\GitHub\replay-manager-for-slippi> npm exec tsc node_modules/slp-enforcer/dist/slippi/stats/index.d.ts:7:10 - error TS2300: Duplicate identifier 'type'. 7 export { type, StatComputer, type, StatOptions, Stats } from "./stats"; ~~~~ node_modules/slp-enforcer/dist/slippi/stats/index.d.ts:7:10 - error TS2305: Module '"./stats"' has no exported member 'type'. 7 export { type, StatComputer, type, StatOptions, Stats } from "./stats"; ~~~~ node_modules/slp-enforcer/dist/slippi/stats/index.d.ts:7:30 - error TS2300: Duplicate identifier 'type'. 7 export { type, StatComputer, type, StatOptions, Stats } from "./stats"; ~~~~ node_modules/slp-enforcer/dist/slippi/stats/index.d.ts:7:30 - error TS2305: Module '"./stats"' has no exported member 'type'. 7 export { type, StatComputer, type, StatOptions, Stats } from "./stats";
looks like I can work around this by adding
{ "compilerOptions": { "skipLibCheck": true }, }
to tsconfig.json
tsconfig.json
looks like
from
src/slippi/stats/index.ts
somehow becomesin
slp-enforcer/dist/slippi/stats/index.d.ts
in the exported module whichtsc
doesn't like