Alexander Kim
How to correctly use lodash in a nuxt 3 module?
I've tried to import lodash with a few different ways:
1.
import debounce from 'lodash/debounce'
2. import { debounce } from 'lodash
Both gave me an error, whenever i tried to use that component from my module:
The requested module '/_nuxt/node_modules/.pnpm/[email protected]/node_modules/lodash/lodash.js?v=74319f89' does not provide an export named 'default'
What's the right way to do that? I'm using module starter repo: https://github.com/nuxt/starter/tree/module2 replies
Nuxt module starter: composables aren't recognized by TS
Using this module starter: https://github.com/nuxt/starter/tree/module
Both
useRuntimeConfig
& computed
not recognized by TS, why?1 replies