Compilation error: Cannot find module 'places.js' or its corresponding type declarations.
kisamoto opened this issue Β· 6 comments
kisamoto commented
Describe the bug π
Receiving a compilation error when trying to use the latest version of angular-instantsearch
.
Expected behavior π
Successful compilation.
Environment:
- OS: Linux
- Browser: All
- Version:
"angular-instantsearch": "^4.4.0",
"@angular/core": "^15.2.0",
Additional context
fourthofaugust commented
@kisamoto I was able to fix this compilation error by installing npm i -D @types/places
& npm i places.js
.
kisamoto commented
Can confirm that fixes it but should either:
- be in the docs;
- or have the dependency removed (places.js is in the public archive)
fourthofaugust commented
@kisamoto Yeah that's true. Maybe one of the maintainers should document it.
mazenaboelanin commented
@fourthofaugust @kisamoto itβs wasnβt resolved when using yarn add @types/places
Haroenv commented
Can someone make a reproduction of this? When I'm trying this in the examples, places doesn't need to be loaded.
mazenaboelanin commented
@Haroenv
solved by running yarn add @types/places && yarn add places.js