Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Orange-001 opened this issue Nov 4, 2024 · 1 comment

Comments

@Orange-001
Copy link

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.

@Orange-001 Orange-001 changed the title Bug: Encountering Node Modules and CDN Rendering Issues When Using import-map in Vue REPL [Bug]: Missing ref owner context, cdn link rendering failure, and potential listener leak. Nov 4, 2024
@wangcch
Copy link
Collaborator

wangcch commented Feb 18, 2025

Try this case element-plus play (SSR off), I wonder if it will inspire you.

@wangcch wangcch closed this as completed Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants