Skip to content

[Bug]: Missing ref owner context, cdn link rendering failure, and potential listener leak. #293

Open
@Orange-001

Description

I encountered three problems while using import-map in the Vue REPL:

  1. Error with Node Modules:
    When using import-map with node_modules, I receive the following error:

    Missing ref owner context. 'ref' cannot be used on hoisted VNodes. A VNode with 'ref' must be created inside the render function.
    at <ElInput modelValue="Hello World!" onUpdate:modelValue=fn>
    at <Repl>
    

    Steps to Reproduce: Check lines 34-35 in src/template/welcome.vue.

    image

  2. Rendering Failure with CDN Link:
    When using import-map with a CDN link, the rendering fails.
    Steps to Reproduce: Check lines 37-38 in src/template/welcome.vue.

    image

  3. Potential Listener Leak:
    I encountered an error indicating a potential listener leak:

    Uncaught Error: [001] potential listener LEAK detected, having 200 listeners already. MOST frequent listener (1):
    Error
        at Stacktrace.create (MonacoEditor-CSdcTlIW.js?v=05f73935:2666:21)
        at LanguageSelection._event [as _onDidChangeLanguages] (MonacoEditor-CSdcTlIW.js?v=05f73935:2779:46)
        at get onDidChange (MonacoEditor-CSdcTlIW.js?v=05f73935:165517:35)
        ...
    

image

Steps to Reproduce: https://github.com/Orange-001/repl-test.git

I understand that these could potentially be due to my own misuse, but I wanted to share my findings in case they are actual bugs.

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