I am trying to import lodash into my stenciljs component. I have tried multiple ways and viewed many solutions regarding this but got no luck on this.
I have tried to import in the following ways:
import * as _ from 'lodash';
import _ from 'lodash';
import 'lodash';
import {_} from 'lodash';
None of them is working for me. First one does not throw any error but I am not able to use any function from lodash. Rest of the ways throw errors and the build fails.
Any help would be really appreciable.
Thanks in advance!!