Open asithade opened 4 years ago
Can you show which typescript configuration you have? It might be that you have a stricter setup than the one Angular InstantSearch is made with. Ideally this would be reproducible in a GitHub repository. Thanks!
If we set strict
to false in the tsconfig.ts, it compiles fine. Ideally we can still keep that turned on and have this compile though.
{
"compileOnSave": true,
"compilerOptions": {
"downlevelIteration": true,
"module": "esnext",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitAny": false,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"strictNullChecks": false,
"target": "es2015",
"typeRoots": ["../../node_modules/@types/"],
"lib": ["es2017", "dom"],
"baseUrl": "src",
"paths": {
"@app/*": ["app/*"],
"@modules/*": ["app/modules/*"],
"@services/*": ["app/services/*"],
"@models/*": ["app/core/models/*"],
"@shared/*": ["app/shared/*"],
"@environments/*": ["environments/*"]
},
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"preserveWhitespaces": false
}
}
Note: Adding skipLibCheck
to true will also bypass this error
Describe the bug 🐛
Added the latest beta version of angular-instantsearch and when I try to run my project, I'm getting the following error:
To Reproduce 🔍
Steps to reproduce the behavior:
yarn add angular-instantsearch@3
-- select beta 4ng serve