-
Notifications
You must be signed in to change notification settings - Fork 4
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
JS error /_addons/new_format_pack/web/editor.js:219 Uncaught (in promise) TypeError: Cannot read property '$$' of undefined #2
Comments
Related: sveltejs/svelte#6584 |
|
Is this perhaps another example of problems with using Svelte across compilation units Henrik? I'm a bit worried this approach is not going to work for us if it's not a use case Svelte are trying to support. |
@dae can you elaborate on what you're referring to ? I was a bit surprised to see that the example addon can be built without having access to anki's source code, I fully expected I would have to someone link to Anki's repository of Svelte components. |
This specific issue was because I was using a newer Svelte version in this add-on, then Anki uses. I've downgraded the Svelte that the add-on uses to The issue with compilation units still exists though. However it's more about reactivity. I've been thinking about writing an esbuild extension, that can alleviate this, at least for now. |
I'm running into an issue with building this addon and trying to run it with Anki 2.1.46 on Linux. I'm new to Svelte so I could be doing something wrong. I did npm install in the web directory, then went up one directory and did bin/compile.sh, then bin/zip.sh
line 219 in this case is this:
root: options.target || parent_component.$$.root
The text was updated successfully, but these errors were encountered: