-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Unable to compose Svelte components with each other #151
Comments
I've added your example to the example_project and it seems to work for me: f9d6889 Also make sure of the following:
Should probably be:
Because Consider running the example_project, maybe it'll reveal the issue |
I am running into this same issue, it looks like to me that the generated For example:
this code gets output in my server.js. To fix the undefined issue I can just change this line from: Just figured it out you need |
@nikfp |
Give me the day to try it, I was exploring LiveSvelte on a branch that I'm not actively working on and I need to get something working in front of a coworker today. Once that pressure is off I can circle back. |
I'm trying to get some composition going and I ran into an issue with importing one svelte component into another. This is the code I'm working with. The main component looks like this:
And here we have the text input getting started.
When I add the text input in, I'm getting this error:
And I've tried several ways of getting the imports going, including the relative import show, importing from
$lib
, and importing relative to the elixir project root.What am I missing? Is this something simple I should be approaching differently? I haven't been able to find an example of composing Svelte components inside a LiveSvelte project online.
The text was updated successfully, but these errors were encountered: