Is it possible to deploy lightning web components to an org with an api version lower than 45?












4














I'd like to start developing LWCs in my dev sandbox, but it's current api version is 44. I get this error when trying to deploy my lwc.




Starting SFDX: Deploy Source to Org



19:30:37.961 sfdx force:source:deploy --json --loglevel fatal --sourcepath /Users/tyler/code/salesforce/HelloWorld/force-app/main/default/lwc
{"message":"Deploy failed.","status":1,"stack":"DeployFailed: Deploy failed.n at ALMError (/Users/tyler/.local/share/sfdx/plugins/node_modules/salesforce-alm/dist/lib/almError.js:44:19)n at MetadataRegistry.initializeMetadataTypeInfos.then.catch.e (/Users/tyler/.local/share/sfdx/plugins/node_modules/salesforce-alm/dist/lib/source/sourceApiCommand.js:67:35)n at tryCatcher (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/util.js:16:23)n at Promise._settlePromiseFromHandler (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:510:31)n at Promise._settlePromise (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:567:18)n at Promise._settlePromise0 (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:612:10)n at Promise._settlePromises (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:687:18)n at Async._drainQueue (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:138:16)n at Async._drainQueues (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:148:10)n at Immediate.Async.drainQueues (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:17:14)n at runCallback (timers.js:789:20)n at tryOnImmediate (timers.js:751:5)n at processImmediate [as _immediateCallback] (timers.js:722:5)","name":"DeployFailed","result":[{"error":"Invalid version specified:45.0","type":"","filePath":"N/A"}],"warnings":["All --json output, including on error, is moving to stdout. Use the SFDX_JSON_TO_STDOUT environment variable to move over to the new functionality. This will become the default in version 45."]}
19:30:40.979 sfdx force:source:deploy --json --loglevel fatal --sourcepath /Users/tyler/code/salesforce/HelloWorld/force-app/main/default/lwc ended with exit code 1




Has anyone else been able to successfully deploy a lwc to an org with an api version that is not 45?










share|improve this question



























    4














    I'd like to start developing LWCs in my dev sandbox, but it's current api version is 44. I get this error when trying to deploy my lwc.




    Starting SFDX: Deploy Source to Org



    19:30:37.961 sfdx force:source:deploy --json --loglevel fatal --sourcepath /Users/tyler/code/salesforce/HelloWorld/force-app/main/default/lwc
    {"message":"Deploy failed.","status":1,"stack":"DeployFailed: Deploy failed.n at ALMError (/Users/tyler/.local/share/sfdx/plugins/node_modules/salesforce-alm/dist/lib/almError.js:44:19)n at MetadataRegistry.initializeMetadataTypeInfos.then.catch.e (/Users/tyler/.local/share/sfdx/plugins/node_modules/salesforce-alm/dist/lib/source/sourceApiCommand.js:67:35)n at tryCatcher (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/util.js:16:23)n at Promise._settlePromiseFromHandler (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:510:31)n at Promise._settlePromise (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:567:18)n at Promise._settlePromise0 (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:612:10)n at Promise._settlePromises (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:687:18)n at Async._drainQueue (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:138:16)n at Async._drainQueues (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:148:10)n at Immediate.Async.drainQueues (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:17:14)n at runCallback (timers.js:789:20)n at tryOnImmediate (timers.js:751:5)n at processImmediate [as _immediateCallback] (timers.js:722:5)","name":"DeployFailed","result":[{"error":"Invalid version specified:45.0","type":"","filePath":"N/A"}],"warnings":["All --json output, including on error, is moving to stdout. Use the SFDX_JSON_TO_STDOUT environment variable to move over to the new functionality. This will become the default in version 45."]}
    19:30:40.979 sfdx force:source:deploy --json --loglevel fatal --sourcepath /Users/tyler/code/salesforce/HelloWorld/force-app/main/default/lwc ended with exit code 1




    Has anyone else been able to successfully deploy a lwc to an org with an api version that is not 45?










    share|improve this question

























      4












      4








      4







      I'd like to start developing LWCs in my dev sandbox, but it's current api version is 44. I get this error when trying to deploy my lwc.




      Starting SFDX: Deploy Source to Org



      19:30:37.961 sfdx force:source:deploy --json --loglevel fatal --sourcepath /Users/tyler/code/salesforce/HelloWorld/force-app/main/default/lwc
      {"message":"Deploy failed.","status":1,"stack":"DeployFailed: Deploy failed.n at ALMError (/Users/tyler/.local/share/sfdx/plugins/node_modules/salesforce-alm/dist/lib/almError.js:44:19)n at MetadataRegistry.initializeMetadataTypeInfos.then.catch.e (/Users/tyler/.local/share/sfdx/plugins/node_modules/salesforce-alm/dist/lib/source/sourceApiCommand.js:67:35)n at tryCatcher (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/util.js:16:23)n at Promise._settlePromiseFromHandler (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:510:31)n at Promise._settlePromise (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:567:18)n at Promise._settlePromise0 (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:612:10)n at Promise._settlePromises (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:687:18)n at Async._drainQueue (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:138:16)n at Async._drainQueues (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:148:10)n at Immediate.Async.drainQueues (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:17:14)n at runCallback (timers.js:789:20)n at tryOnImmediate (timers.js:751:5)n at processImmediate [as _immediateCallback] (timers.js:722:5)","name":"DeployFailed","result":[{"error":"Invalid version specified:45.0","type":"","filePath":"N/A"}],"warnings":["All --json output, including on error, is moving to stdout. Use the SFDX_JSON_TO_STDOUT environment variable to move over to the new functionality. This will become the default in version 45."]}
      19:30:40.979 sfdx force:source:deploy --json --loglevel fatal --sourcepath /Users/tyler/code/salesforce/HelloWorld/force-app/main/default/lwc ended with exit code 1




      Has anyone else been able to successfully deploy a lwc to an org with an api version that is not 45?










      share|improve this question













      I'd like to start developing LWCs in my dev sandbox, but it's current api version is 44. I get this error when trying to deploy my lwc.




      Starting SFDX: Deploy Source to Org



      19:30:37.961 sfdx force:source:deploy --json --loglevel fatal --sourcepath /Users/tyler/code/salesforce/HelloWorld/force-app/main/default/lwc
      {"message":"Deploy failed.","status":1,"stack":"DeployFailed: Deploy failed.n at ALMError (/Users/tyler/.local/share/sfdx/plugins/node_modules/salesforce-alm/dist/lib/almError.js:44:19)n at MetadataRegistry.initializeMetadataTypeInfos.then.catch.e (/Users/tyler/.local/share/sfdx/plugins/node_modules/salesforce-alm/dist/lib/source/sourceApiCommand.js:67:35)n at tryCatcher (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/util.js:16:23)n at Promise._settlePromiseFromHandler (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:510:31)n at Promise._settlePromise (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:567:18)n at Promise._settlePromise0 (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:612:10)n at Promise._settlePromises (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/promise.js:687:18)n at Async._drainQueue (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:138:16)n at Async._drainQueues (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:148:10)n at Immediate.Async.drainQueues (/Users/tyler/.local/share/sfdx/plugins/node_modules/bluebird/js/release/async.js:17:14)n at runCallback (timers.js:789:20)n at tryOnImmediate (timers.js:751:5)n at processImmediate [as _immediateCallback] (timers.js:722:5)","name":"DeployFailed","result":[{"error":"Invalid version specified:45.0","type":"","filePath":"N/A"}],"warnings":["All --json output, including on error, is moving to stdout. Use the SFDX_JSON_TO_STDOUT environment variable to move over to the new functionality. This will become the default in version 45."]}
      19:30:40.979 sfdx force:source:deploy --json --loglevel fatal --sourcepath /Users/tyler/code/salesforce/HelloWorld/force-app/main/default/lwc ended with exit code 1




      Has anyone else been able to successfully deploy a lwc to an org with an api version that is not 45?







      lightning-web-components






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 22 at 3:58









      Tyler Zika

      1,0191724




      1,0191724






















          1 Answer
          1






          active

          oldest

          votes


















          6














          Short answer , you will need pre-release org and API version 45 atleast.




          1. Sign up here for the pre-release org https://www.salesforce.com/form/signup/prerelease-spring19/


          2. You will need pre-release CLI plugin to scaffold the bundle .Install the SFDX CLI (https://developer.salesforce.com/tools/sfdxcli) and then install pre release DX plugin sfdx plugins:install salesforcedx@pre-release.


          3. Install the VScode extension pack for salesforce https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode to get syntax autocomplete , deploy and other language features .







          share|improve this answer























          • I'd like to start developing in my dev sandbox now. Do I need to wait till salesforce updates it? How can I get a pre-release org in the mean time?
            – Tyler Zika
            Dec 22 at 4:11






          • 1




            Sign up here salesforce.com/form/signup/prerelease-spring19
            – Mohith Shrivastava
            Dec 22 at 4:13






          • 3




            @TylerZika If you have Sandboxes that will be upgraded, you can do this against your (sandbox copy of) production code too, starting January 4th.
            – sfdcfox
            Dec 22 at 4:26













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "459"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f244496%2fis-it-possible-to-deploy-lightning-web-components-to-an-org-with-an-api-version%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          6














          Short answer , you will need pre-release org and API version 45 atleast.




          1. Sign up here for the pre-release org https://www.salesforce.com/form/signup/prerelease-spring19/


          2. You will need pre-release CLI plugin to scaffold the bundle .Install the SFDX CLI (https://developer.salesforce.com/tools/sfdxcli) and then install pre release DX plugin sfdx plugins:install salesforcedx@pre-release.


          3. Install the VScode extension pack for salesforce https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode to get syntax autocomplete , deploy and other language features .







          share|improve this answer























          • I'd like to start developing in my dev sandbox now. Do I need to wait till salesforce updates it? How can I get a pre-release org in the mean time?
            – Tyler Zika
            Dec 22 at 4:11






          • 1




            Sign up here salesforce.com/form/signup/prerelease-spring19
            – Mohith Shrivastava
            Dec 22 at 4:13






          • 3




            @TylerZika If you have Sandboxes that will be upgraded, you can do this against your (sandbox copy of) production code too, starting January 4th.
            – sfdcfox
            Dec 22 at 4:26


















          6














          Short answer , you will need pre-release org and API version 45 atleast.




          1. Sign up here for the pre-release org https://www.salesforce.com/form/signup/prerelease-spring19/


          2. You will need pre-release CLI plugin to scaffold the bundle .Install the SFDX CLI (https://developer.salesforce.com/tools/sfdxcli) and then install pre release DX plugin sfdx plugins:install salesforcedx@pre-release.


          3. Install the VScode extension pack for salesforce https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode to get syntax autocomplete , deploy and other language features .







          share|improve this answer























          • I'd like to start developing in my dev sandbox now. Do I need to wait till salesforce updates it? How can I get a pre-release org in the mean time?
            – Tyler Zika
            Dec 22 at 4:11






          • 1




            Sign up here salesforce.com/form/signup/prerelease-spring19
            – Mohith Shrivastava
            Dec 22 at 4:13






          • 3




            @TylerZika If you have Sandboxes that will be upgraded, you can do this against your (sandbox copy of) production code too, starting January 4th.
            – sfdcfox
            Dec 22 at 4:26
















          6












          6








          6






          Short answer , you will need pre-release org and API version 45 atleast.




          1. Sign up here for the pre-release org https://www.salesforce.com/form/signup/prerelease-spring19/


          2. You will need pre-release CLI plugin to scaffold the bundle .Install the SFDX CLI (https://developer.salesforce.com/tools/sfdxcli) and then install pre release DX plugin sfdx plugins:install salesforcedx@pre-release.


          3. Install the VScode extension pack for salesforce https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode to get syntax autocomplete , deploy and other language features .







          share|improve this answer














          Short answer , you will need pre-release org and API version 45 atleast.




          1. Sign up here for the pre-release org https://www.salesforce.com/form/signup/prerelease-spring19/


          2. You will need pre-release CLI plugin to scaffold the bundle .Install the SFDX CLI (https://developer.salesforce.com/tools/sfdxcli) and then install pre release DX plugin sfdx plugins:install salesforcedx@pre-release.


          3. Install the VScode extension pack for salesforce https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode to get syntax autocomplete , deploy and other language features .








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Dec 22 at 4:27

























          answered Dec 22 at 4:10









          Mohith Shrivastava

          59.7k795138




          59.7k795138












          • I'd like to start developing in my dev sandbox now. Do I need to wait till salesforce updates it? How can I get a pre-release org in the mean time?
            – Tyler Zika
            Dec 22 at 4:11






          • 1




            Sign up here salesforce.com/form/signup/prerelease-spring19
            – Mohith Shrivastava
            Dec 22 at 4:13






          • 3




            @TylerZika If you have Sandboxes that will be upgraded, you can do this against your (sandbox copy of) production code too, starting January 4th.
            – sfdcfox
            Dec 22 at 4:26




















          • I'd like to start developing in my dev sandbox now. Do I need to wait till salesforce updates it? How can I get a pre-release org in the mean time?
            – Tyler Zika
            Dec 22 at 4:11






          • 1




            Sign up here salesforce.com/form/signup/prerelease-spring19
            – Mohith Shrivastava
            Dec 22 at 4:13






          • 3




            @TylerZika If you have Sandboxes that will be upgraded, you can do this against your (sandbox copy of) production code too, starting January 4th.
            – sfdcfox
            Dec 22 at 4:26


















          I'd like to start developing in my dev sandbox now. Do I need to wait till salesforce updates it? How can I get a pre-release org in the mean time?
          – Tyler Zika
          Dec 22 at 4:11




          I'd like to start developing in my dev sandbox now. Do I need to wait till salesforce updates it? How can I get a pre-release org in the mean time?
          – Tyler Zika
          Dec 22 at 4:11




          1




          1




          Sign up here salesforce.com/form/signup/prerelease-spring19
          – Mohith Shrivastava
          Dec 22 at 4:13




          Sign up here salesforce.com/form/signup/prerelease-spring19
          – Mohith Shrivastava
          Dec 22 at 4:13




          3




          3




          @TylerZika If you have Sandboxes that will be upgraded, you can do this against your (sandbox copy of) production code too, starting January 4th.
          – sfdcfox
          Dec 22 at 4:26






          @TylerZika If you have Sandboxes that will be upgraded, you can do this against your (sandbox copy of) production code too, starting January 4th.
          – sfdcfox
          Dec 22 at 4:26




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Salesforce Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsalesforce.stackexchange.com%2fquestions%2f244496%2fis-it-possible-to-deploy-lightning-web-components-to-an-org-with-an-api-version%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Список кардиналов, возведённых папой римским Каликстом III

          Deduzione

          Mysql.sock missing - “Can't connect to local MySQL server through socket”