-
Notifications
You must be signed in to change notification settings - Fork 59
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
Uncaught (in promise) TypeError: Cannot read property '$$' of null #169
Comments
The issue is how your bundler resolves the svelte sources, as said on their documentation, they should read the In your sandbox, you can read something like this:
That's pointing out that we're not loading from the
Check out the documentation fot the rollup's resolve plugin, and for the I had this kind of issues before, but as soon I started to configure my bundler as expected (I use esbuild) then the issue gone. |
Thank you for the pointer, @pateketrueke: this sounds like a plausible explanation. I failed to mention that I am actually using webpack, but since I am in the process of looking for a suitable solution, I will look for similar configuration, and report back here if I find a viable option. This may help others in the same situation. |
I have performed some research, and I can confirm @pateketrueke's advice: in my case, using
More documentation about the To the maintainers of |
Summary
As of
v2.0.1
,svelte-forms-lib
is built with svelte 3.40, which is affected by the bug reported in sveltejs/svelte#6584. I am experiencing the error described therein when using helper subcomponents.Steps to reproduce
Using one of the examples using subcomponents will lead to an error. See below for CodeSandbox.
Example Project
Please see this CodeSandbox. I also copy the relevant code below, for convenience:
Example code
What is the current bug behavior?
An error is thrown. Depending on situation, the error may be the one in the screenshot below, or the one described in sveltejs/svelte#6584 (comment). Both of them depend on
$$
being undefined.What is the expected correct behavior?
No error should be thrown.
Relevant logs and/or screenshots
Possible fixes
The text was updated successfully, but these errors were encountered: