./node_modules/@segment/consent-manager/src/consent-manager/cancel-dialog.tsx:34:9
Type error: Type '(node: HTMLElement) => void' is not assignable to type '(element: HTMLElement | null) => void'.
Types of parameters 'node' and 'element' are incompatible.
Type 'HTMLElement | null' is not assignable to type 'HTMLElement'.
Type 'null' is not assignable to type 'HTMLElement'.
**Others partly resolved**
- The js-cookie library error
https://github.com/segmentio/consent-manager/blob/master/src/consent-manager-builder/preferences.ts#L1-L2
Resolved by installing v2 `js-cookie` (`@types/js-cookie`)
- With the consent-manager-builder/preferences.ts fike
./node_modules/@segment/consent-manager/src/consent-manager-builder/preferences.ts:3:23
Type error: Could not find a declaration file for module '@segment/top-domain'. '...../node_modules/@segment/top-domain/lib/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/segment__top-domain if it exists or add a new declaration (.d.ts) file containing declare module '@segment/top-domain';
./node_modules/@segment/consent-manager/src/consent-manager-builder/preferences.ts:3:23 Type error: Could not find a declaration file for module '@segment/top-domain'. '...../node_modules/@segment/top-domain/lib/index.js' implicitly has an 'any' type. Try
npm i --save-dev @types/segment__top-domain
if it exists or add a new declaration (.d.ts) file containingdeclare module '@segment/top-domain';
declare module '@segment/top-domain' { const a: any; export default a; }