Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

TypeError: _lodash2.default.debounce is not a function #23

@breeze1990

Description

@breeze1990

It seems something is wrong when using the lodash library
Message when starting the server:
Cannot parse static/src/vue/components/table.vue: TypeError: _lodash2.default.debounce is not a function
It usually means that vue-docgen-api does not understand your source code or when using third-party libraries, try to file an issue here:
https://github.com/vue-styleguidist/vue-docgen-api/issues

and the Vue file is like:

<script>
    import _ from 'lodash';  
    export default {
        methods: {
            someMethod: _.debounce(function () {}),
        }
    }
</script>

The issue looks like #16 but I'm using the latest version and still get the error

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions