-
Notifications
You must be signed in to change notification settings - Fork 79
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
False positive validation of LWC #1602
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Hello, was this working on a previous version of the CLI ? if so which one ? |
@maggiben it is, v 7.132.0 has no issue |
I've introduced an HTML error in our demo dreamhouse-lwc and I got these results: and with Maybe you can provide us with an org to reproduce this error, thanks ! |
@maggiben did you try the exact example that was provided in the description, i.e., a brand new LWC component with the following HTML body: <template>
<p<>1234567</p>
</template> I'm able to reproduce it with that against pretty much any org. PS: I'm lurking on this issue because this was originally asked in the context of IC2 but since it was reproducible by both of us using only the CLI, I asked that an issue be opened here. |
I noticed that In the example above I was nesting |
This issue has been linked to a new work item: W-11385290 |
@SCWells72 @dankleinsingletrack I'm following your steps exactly and am on
|
I've also tried pushing a valid version up and then changing it to be bad, and still get the same (good) error. Can you update the CLI (plugin source is 2.0.x these days) and see if the problem has already been fixed? |
@mshanemc updated sfdx and managed to reproduce |
@SCWells72 @dankleinsingletrack I've made no progress with reproducing this. I made a repro-repo
|
@mshanemc I've cloned and attempted to repro using your repo. |
OK, so the namespace is the key. I wasn't using it based on what @SCWells72 said
Thanks for checking! |
@mshanemc For what it's worth, I can (or at least could; I haven't tried since the last time I responded here) reproduce this against a non-namespace org. However, if you find that you can reproduce this against a namespace org, hopefully that will lead you to the more general issue and solution. |
I found the bug and we're gonna get this out today in RC |
But the bug I found around this is only gonna affect non- |
Interesting. I just brought up the same project that reproduced this on June 30 against the latest-and-greatest CLI at that point and it no longer reproduces for me. Oh well... |
Summary
When attempting a push an invalid LWC, sfdx shows a success message with a list of files changed although deployment has failed and files have changed in the org.
Steps To Reproduce:
create an LWC component with invalid markup:
<template>
<p<>1234567</p>
</template>
push using the command:
sfdx force:source:push --json
Expected result
Error message
Actual result
The outcome - success with list of changed files, although nothing changed:
{
"status": 0,
"result": {
"pushedSource": [
{
"state": "Changed",
"fullName": "betaComponent1",
"type": "LightningComponentBundle",
"filePath": "/Users/danklein/workspace/Singletrack-Core/SingletrackDev/singletrack/main/default/lwc/betaComponent1/betaComponent1.css"
},
{
"state": "Changed",
"fullName": "betaComponent1",
"type": "LightningComponentBundle",
"filePath": "/Users/danklein/workspace/Singletrack-Core/SingletrackDev/singletrack/main/default/lwc/betaComponent1/betaComponent1.html"
},
{
"state": "Changed",
"fullName": "betaComponent1",
"type": "LightningComponentBundle",
"filePath": "/Users/danklein/workspace/Singletrack-Core/SingletrackDev/singletrack/main/default/lwc/betaComponent1/betaComponent1.js"
},
{
"state": "Changed",
"fullName": "betaComponent1",
"type": "LightningComponentBundle",
"filePath": "/Users/danklein/workspace/Singletrack-Core/SingletrackDev/singletrack/main/default/lwc/betaComponent1/betaComponent1.js-meta.xml"
}
]
}
}
System Information
bash
sfdx
sfdx version --verbose --json
sf
sf version
ANDsf plugins --core
-{
"cliVersion": "sfdx-cli/7.155.1",
"architecture": "darwin-x64",
"nodeVersion": "node-v16.15.1",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.3.1 (core)",
"@oclif/plugin-not-found 1.2.6 (core)",
"@oclif/plugin-plugins 1.10.11 (core)",
"@oclif/plugin-update 1.5.0 (core)",
"@oclif/plugin-warn-if-update-available 1.7.3 (core)",
"@oclif/plugin-which 1.0.4 (core)",
"@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
"alias 2.0.1 (core)",
"apex 0.13.0 (core)",
"auth 2.1.0 (core)",
"community 2.0.0 (core)",
"config 1.4.12 (core)",
"custom-metadata 2.0.0 (core)",
"data 2.0.3 (core)",
"generator 2.0.1 (core)",
"info 2.0.1 (core)",
"limits 2.0.1 (core)",
"org 1.13.2 (core)",
"salesforce-alm 54.5.1 (core)",
"schema 2.1.1 (core)",
"sfdx-cli 7.155.1 (core)",
"signups 1.1.2 (core)",
"source 1.10.2 (core)",
"telemetry 2.0.0 (core)",
"templates 54.8.0 (core)",
"trust 2.0.0 (core)",
"user 2.0.2 (core)"
],
"osVersion": "Darwin 21.5.0"
}
Additional information
important to note:
The text was updated successfully, but these errors were encountered: