-
Notifications
You must be signed in to change notification settings - Fork 73
Angular InstantSearch failing to compile when using node version 14 #967
Comments
I managed to also reproduce this by running |
Do you also have this if you have the latest version of InstantSearch.js (underlying)? The fix should have been released in 4.46.2 algolia/instantsearch#5109 (comment) |
I think that the issue is because instantsearch is still at ^4.45.0 in the angular-instantsearch dependencies. I've made a PR for the update in #968 although I am not sure I've followed the right process for that. Hope that helps! |
Thanks for that PR, it indeed will cause people to have minimally have this issue @Emily-RoseSteyn |
* fix(shared): make usable when there's no preact or react see algolia/angular-instantsearch#968, algolia/angular-instantsearch#967 and algolia/instantsearch#5109 * Update packages/shared/src/Renderer.ts Co-authored-by: Sarah Dayan <[email protected]> * avoid usage of JSX.IntrinsicElements, as it can fall back to empty interface eg. in the case there's no JSX set (angular, vue) * add a bit more text Co-authored-by: Sarah Dayan <[email protected]>
Sorry for the delay here, this involved a lot of moving pieces. To ensure it's definitely updated, we've released 4.3.1 of Angular InstantSearch that fixes the issue |
Describe the bug 🐛
We are currently trying to run Angular InstantSearch using one of your code samples repository Doc Code Samples and the project is failing to comple after running
npm install .
using node 14. The project runs perfectly when node 16 is used.To Reproduce 🔍
Steps to reproduce the behavior:
Expected behavior 💭
The build fails to compile, throwing the following errors:
Error: node_modules/@algolia/ui-components-highlight-vdom/dist/esm/Highlight.d.ts:1:23 - error TS2688: Cannot find type definition file for 'react'.
1 ///
~~~~~
Error: node_modules/@algolia/ui-components-highlight-vdom/dist/esm/Highlight.d.ts:33:209 - error TS2503: Cannot find namespace 'JSX'.
33 export declare function createHighlightComponent({ createElement, Fragment, }: Renderer): ({ parts, highlightedTagName, nonHighlightedTagName, separator, className, classNames, ...props }: HighlightProps) => JSX.Element;
~~~
Screenshots 🖥
The complete error log can be seen below:
Environment:
The text was updated successfully, but these errors were encountered: