#import .js

2 messages · Page 1 of 1 (latest)

wintry tundra
#

I am migrating from angular 10 to 15

on 10, no problem

import cloneDeep from 'lodash/cloneDeep';

on 15, I'm told that : it's not found or that I have to make a .d.ts file
I don't understand what to do. I looked on the internet and didn't find much, it's confusing

faint cedar
#

https://www.npmjs.com/package/@types/lodash
But IMPO, don't use lodash with Angular.