Skip to content

stomp方式在创建Kline实例时报错Error in mounted hook: "ReferenceError: SockJS is not defined" #108

Open
@hupnos

Description

我使用的vue-cli引入kline,但是无论在main.js里import SockJS from "kline/lib/sockjs"还是import SockJS from "sockjs-client"或者import SockJS from "sockjs"都会报题目错误,我已经通过npm install --save sockjs stomp安装了依赖。求大佬指点,万分感激

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions