Closed
Description
What I wanted to do
I want to include @optimizely/optimizely-sdk to an existing Angular 12.1.1 project.
What I expected to happen
- No errors in the terminal when running the app with
ng serve
- No errors in the terminal when building the app with
ng build
- No errors in the browser console.
What actually happened
In all three scenarios the following error appears:
Warning: /my/local/path/node_modules/@optimizely/optimizely-sdk/lib/shared_types.ts is part of the TypeScript compilation but it's unused.
Add only entry points to the 'files' or 'include' properties in your tsconfig.
Steps to reproduce
Link to repository that can reproduce the issue: https://github.com/ErikNijland/optimizely-angular-cli-bug
- Install the NPM dependencies with
npm ci
- Run
ng build
orng serve
@optimizely/optimizely-sdk
version: 4.6.0
Browser and version: Chrome 91
node
version: v14.17.1
npm
version: 7.19.1