Skip to content

🐛 [Bug]: vue.2.7.16 报错 inject() can only be used inside setup() or functional components. #3534

@Sam7Joker

Description

@Sam7Joker

Version

2.24

Vue Version

2.7.16

Link to minimal reproduction

https://github.com/Sam7Joker/tinyAdmin

Step to reproduce

错误提示

Image
package.json

Image
vite.config.js

Image

What is expected

No response

What is actually happening

No response

What is your project name

inject() can only be used inside setup() or functional components.

Any additional comments (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions