Skip to content
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

Missing test for compiler error LWC1131: @wire identifier cannot contain computed properties #5145

Open
cardoso opened this issue Jan 20, 2025 · 0 comments

Comments

@cardoso
Copy link
Contributor

cardoso commented Jan 20, 2025

There doesn't seem to be a test for compiler error LWC1131: @wire identifier cannot contain computed properties:

FUNCTION_IDENTIFIER_CANNOT_HAVE_COMPUTED_PROPS: {
code: 1131,
message: '@wire identifier cannot contain computed properties',
level: DiagnosticLevel.Error,
url: '',
},

It should be similar to the test that exists for LWC1132: @wire identifier cannot contain nested member expressions:

{
"message": "LWC1132: @wire identifier cannot contain nested member expressions",
"loc": {
"line": 4,
"column": 8,
"start": 130,
"length": 12
},
"filename": "test.js"
}

After the test is added to babel-plugin-component it can be replicated in a follow-up PR for ssr-compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant