2
force-app\main\default\lwc\sampleLWC\sampleLWC.js-meta.xml  Failed to save Lightning Component Resource [lwc/sample/sample.js] of Lightning Component Bundle [sampleLWC]. 

Error: Value too long for field: Source maximum length is:131072
    force-app\main\default\lwc\sampleLWC\sampleLWC.js           No base file for markup://c:partsOrderLWC  
1

2 Answers 2

0

Please update the salesforce latest plugins with the below command. This issue is resolved in latest release. I have faced same problem, I fixed it with below cammand.

sfdx plugins:install salesforcedx@latest

1
  • This did not help me.
    – kamezaburo
    Commented Oct 23, 2020 at 20:00
0

Please refer to this discussion post: LWC: File size restriction on js file

You might need to break your LWC component into multiples to resolve this error.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .