Skip to content

Commit d16d59f

Browse files
author
Raphael Balet
committed
add - readme : possible error & bugfix
1 parent 1c83981 commit d16d59f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Get the complete changelog here: https://github.com/rbalet/ngx-translate-multi-h
1111

1212
* [Installation](#installation)
1313
* [Usage](#usage)
14+
* [Error & BugFix](#possible-error--bugfix)
1415

1516
## breaking change: v9.0.0
1617
* This library is now using `httpBackend` instead of the `httpClient`, to avoid being delayed by interceptor, which was creating errors while loading.
@@ -101,6 +102,22 @@ export function HttpLoaderFactory(_httpBackend: HttpBackend) {
101102

102103
The loader will merge all translation files from the server using [deepmerge-ts](https://www.npmjs.com/package/deepmerge-ts).
103104

105+
106+
## Possible error & Bugfix
107+
### Can't resolve 'deepmerge-ts'
108+
1. run `npm i deepmerge-ts`
109+
110+
This is due to some version of npm not being able to download peerDependencies properly.
111+
112+
I decided to **not** move it under dependencies since it's considered to be a bad practice.
113+
114+
### values.at is not a function
115+
1. Install `core-js`
116+
2. In `polyfills.ts`, add `import 'core-js/modules/es.array.at'`
117+
118+
`deepmerge-ts@5` uses `Array.at`, which is [not supported](https://caniuse.com/?search=array.at) in _not so_ old versions of Safari `< 15.4`.
119+
120+
104121
## Authors and acknowledgment
105122
* maintainer [Raphaël Balet](https://github.com/rbalet)
106123
* Former maintainer [Dennis Keil](https://github.com/denniske)

0 commit comments

Comments
 (0)