Skip to content

Enabling directives in Vue 2.7 project not working #517

Closed
@sconix

Description

@sconix

Describe the bug

Enabling directives loading in Vue 2.7 project using Vite will cause the following error:

[vite] Internal server error: [unplugin-vue-components:directive] Cannot find render function position.

Noticed that it works correctly if I revert the change to getRenderFnStart function call location made by the following PR:
#487

Reproduction

https://stackblitz.com/edit/vitejs-vite-mg4vpj?file=README.md

System Info

System:
    OS: Linux 5.10 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (8) x64 Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
    Memory: 29.59 GB / 29.60 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 16.17.0 - /usr/bin/node
    npm: 8.19.1 - /usr/local/bin/npm

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions