-
Notifications
You must be signed in to change notification settings - Fork 543
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
Cannot export to native code from more than one module #4613
Comments
Hi, It's only the import { MyType } from "./exports.slint";
import { MyMetaType } from "./meta.slint";
export { MyType, MyMetaType } |
This is done on purpose, to make sure there can't be conflicts if two files have the same exports (Commit 7980eda adds a note in the docs) |
Ok thanks, I'll try that.
Regards,
Martin Ellison
(he/him)
…On Wed, 14 Feb 2024, 18:06 Florian Blasius, ***@***.***> wrote:
Hi,
It's only the export * from that is currently allowed once in a file.
What you work is this:
import { MyType } from "./exports.slint";
import { MyMetaType } from "./meta.slint";
export { MyType, MyMetaType }
—
Reply to this email directly, view it on GitHub
<#4613 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACEA3AV7TZ5JXOU5UP2VXMLYTSEBHAVCNFSM6AAAAABDHZAESSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBTGQZTQNBTGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hello, I have a issue with this. I am using 1.3.2 version of slint and i am exporting 2 views ( MainView and App ) but the native code takes just one of them. Actually the last one that I exported. Here is the explanation:
This is MainView module and,
This is where i export the modules. When I export Why is that happening? |
If I try something like
then I get an error message
re-exporting modules is only allowed once per file
.Also, I can only export to native code from one slint file.
So I can only export to native code from (a) my main slint file and (b) one more file.
But I want to be able to modularise my slint code into several files (modules) and export from all of them to the native code.
Please add this capabilty (or document how to do this).
The text was updated successfully, but these errors were encountered: