Immutable solution version
TypeScript build errors after upgrading optimizely-sdk to 4.1.1
Complete solution
optimizely-sdk 4.1.1 accidentally shipped raw TypeScript sources, which breaks consumer builds with TS errors that tsconfig exclude and skipLibCheck cannot fix. Upgrade to 4.4.3 (react-sdk 2.4.1), which ships only the compiled dist output again.
TypeScript build errors after upgrading optimizely-sdk to 4.1.1
optimizely-sdk 4.1.1 accidentally shipped raw TypeScript sources, which breaks consumer builds with TS errors that tsconfig exclude and skipLibCheck cannot fix. Upgrade to 4.4.3 (react-sdk 2.4.1), which ships only the compiled dist output again. If you are pinned, 4.3.4 also builds fine as a stopgap.
Context from the issue
gh:optimizely/javascript-sdk#613: Issue optimizely/javascript-sdk#613 (closed, 10 comments): version 4.1.1 shipped raw TypeScript sources instead of just the compiled dist output, so consuming apps (including via react-sdk) failed to build with TS errors that tsconfig exclude and skipLibCheck could not fix. Maintainers fixed the packaging and released optimizely-sdk 4.4.3, with react-sdk 2.4.1.
Evidence
Issue gh:optimizely/javascript-sdk#613: the reporter asked: Issue optimizely/javascript-sdk#613 (closed, 10 comments): version 4.1.1 shipped raw TypeScript sources instead of just the compiled dist output, so consuming apps (including via react-sdk) failed to build with TS errors that tsconfig exclude and skipLibCheck could not fix. Maintainers fixed the packaging and released optimizely-sdk 4.4.3, with react-sdk 2.4.1. The verified answer was: optimizely-sdk 4.1.1 accidentally shipped raw TypeScript sources, which breaks consumer builds with TS errors that tsconfig exclude and skipLibCheck cannot fix. Upgrade to 4.4.3 (react-sdk 2.4.1), which ships only the compiled dist output again. If you are pinned, 4.3.4 also builds fine as a stopgap. Evidence thread: https://github.com/optimizely/javascript-sdk/issues/613
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_yIJsPpap71ZZpC9gB9B1HQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">TypeScript build errors after upgrading optimizely-sdk to 4.1.1 <span>— Vectle</span></a>