jquery.terminal: jQuery undefined when using jQuery Terminal with Svelte
Issue summary
I am keep getting this error
Uncaught TypeError: Cannot set properties of undefined (setting 'omap')
at jquery.terminal.js:264:7
at jquery.terminal.js:227:9
at jquery.terminal.js:183:1
(anonymous) @ jquery.terminal.js:264
(anonymous) @ jquery.terminal.js:227
(anonymous) @ jquery.terminal.js:183
…when trying to import jQuery Terminal.
Steps to reproduce
Just getting started. Either import using CDN links, or import as ESM.
Browser and OS
Windows 10 Webview2 (MS Edge)
Additional notes
Using Svelte as a frontend!
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 32 (32 by maintainers)
I will try to create a new svelte project and see what is needed. Will add that to Wiki, when I will solve the problem. Will also try to include two plugins if one will work out of the box.
I have no idea, there are too much happening at the same time.
I also think that you can create minimal reproduction, your backend code with go doesn’t really matter. The problem is with Svelte. You can probably create new Svelte project put your init code.
You need to learn how to reproduce the issues when you reporting bugs. You don’t need 90% of the code you send to reproduce the issue.
If this has nothing to do with svelte (most likely) If I will have time I will test using the library with just Vite.
I don’t think this is the right solution because the normal way to initialize the library is to invoke:
You probably don’t do that, that’s why you need to create hacks to fix this.