-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
The prop value with an expression type of PrivateIdentifier could not be resolved #122
Comments
Thanks! Could you provide the code that's causing the crash? |
It was fairly hard to get the origin. Here is the AST fragment
And the code is using a private member of a class. Here is an extract of the class export class example {
#route = null;
template(args) {
this.#route = args.route || null;
if (this.#route != null) {
this.#route += "/";
}
return ``;
}
onRender() {
let footer = "";
footer = (
<footer class="text-center padding-10">
<a class="button" fk-href={this.#route + "container-preparation/list/upcoming"}>
<svg>
<use xlink:href="#eye" />
</svg>{" "}
See more
</a>
</footer>
);
return footer;
}
} |
Looks like this has the same testing problem as #112. We'll have to upgrade the test suite to be able to parse private fields before fixing this. A workaround in the meantime would be making the href value in a variable, and only putting the variable name inside the prop. |
Thank you for your time and your help. This is not a big problem, but tell me if I can help to fix it 😄 |
Hello,
I'm raising an issue as instructed by the error message.
What info do you need ?
Can I help ?
Thank you for your time
The text was updated successfully, but these errors were encountered: