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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃敎 Update: Local Development Server Deprecation Notice & Announcement #5501

Open
AnanyaJha opened this issue Mar 13, 2024 · 7 comments
Open

Comments

@AnanyaJha
Copy link
Collaborator

AnanyaJha commented Mar 13, 2024

Deprecated, we are working on making a new announcement. [05.01.2024]

Over the past few years, we've received quite a bit of feedback on the current state of the Local Development Server; it was one of the top asks from the State of LWC Development survey in 2023. It's become very clear that the feature is not serving your needs in its current state - and it has the potential to be a productivity multiplier.

We've heard your feedback and we have some updates! We're hard at work building a new solution for Local Development - - with a goal of a Spring '25 GA.

This new solution will be integrated with your VS Code and Code Builder IDEs - more information will be shared soon.

In the interim, we will be deprecating the current LWC Dev Server related commands within the Salesforce Extension Pack starting April 15th. The following commands will be removed from the SF Extension Pack:

  • SFDX: Open Local Development Server
  • SFDX: Start Local Development Server
  • SFDX: Stop Local Development Server

As always, please share feedback and thoughts here.

@jmcnaughton-isuf
Copy link

jmcnaughton-isuf commented Mar 13, 2024

Any suggestions or recommendations for interim substitutions? The local dev server in theory could be a real time saver like you say but there has been significant issues since December of 2022 and now we likely arent going to see anything till 2025?

@AnanyaJha AnanyaJha pinned this issue Mar 26, 2024
@AnanyaJha
Copy link
Collaborator Author

Hi @jmcnaughton-isuf , could you tell me more about how you or your team have been working with the local dev server currently? Our impetus here is to ensure that any available solution is working correctly and we can provide you with adequate support to resolve any issues. We've made a decision to not invest further in the current solution and instead prioritize the newer one, coming soon.

I'll be sure to update this post with any Beta timelines in 2024 as soon as we have that info. In the meantime, it'd be helpful to understand the impact of deprecating the current local dev experience for your team.

@nttjansterl
Copy link

nttjansterl commented Apr 3, 2024

@AnanyaJha The impact is pretty simple: Instead of automatic hot reloads, we have to deploy to an org, wait and manually refresh every time we make a change.

Ask one of your frontend devs how often they perform incremental updates and they'll tell you, that they perform this type of operation hundreds if not thousand times per day.

Local Development Server allowed for this - working with frontend components, you now spend more time waiting than writing code, which increases development time at least x10.

@lukethacoder
Copy link

Looking forward to the official Local Development Server release but I really couldn't wait much longer, have sadly barely used it due to CSS Variables not being supported. Sharing because it is such a time saver when building for on-platform.

Full support for CSS Variables and anything else you could want from the modern web.

  • 馃殌 Local First Development (feat. Speedy HMR)
  • 馃И Mock Anything (Apex, OmniScript, 3rd Party Packages and on-platform imports)
  • 馃ェ <slot/> Placeholders
  • 馃拝 SLDS Support OOTB (and lightning-base-components)
  • 鉁忥笍 API Editor via Storybook-like argTypes
  • 馃帹 Custom Theming API
  • 鈿欙笍 Config as much or as little as your like
  • 馃檶 And best of all, open sourced

lwc-garden-arg-types

lwc-garden-lighting-base-components

@ev-will
Copy link

ev-will commented Apr 10, 2024

@AnanyaJha The impact is pretty simple: Instead of automatic hot reloads, we have to deploy to an org, wait and manually refresh every time we make a change.

Ask one of your frontend devs how often they perform incremental updates and they'll tell you, that they perform this type of operation hundreds if not thousand times per day.

Local Development Server allowed for this - working with frontend components, you now spend more time waiting than writing code, which increases development time at least x10.

I also frequently use the Local Development Server for creating lightning components. Removing this functionality is a significant impediment to my efficiency.

As for how it was used... I would build my component out entirely using the local development server. Once I deemed it acceptable, I would deploy it to my scratch org or sandbox. I also taught all my devs to use it. In my opinion, it was an essential piece to the LWC development process. I am severely disappointed that this was deprecated without an official, alternative option.

@CristiCanizales CristiCanizales unpinned this issue Apr 24, 2024
@MohitPushpam
Copy link

MohitPushpam commented May 6, 2024

Hi @AnanyaJha Is there any update related to new release as mentioned date [05.01.2024] has been passed.

@rsensharma
Copy link

Important Update: Changes to our deprecation plans
Remember when we mentioned plans to deprecate certain commands by mid-April? Well, after thorough testing, we鈥檝e decided to keep them in action because they鈥檙e functioning just as they should!
However, we want to give you a heads-up on a few things to consider when using these commands. Specifically, if your Lightning Web Components include lwc:if, lwc:elseif, or lwc:else directives, you might encounter issues with the preview command. Why? Because our dev server doesn鈥檛 quite sync up with them yet.
While we won鈥檛 be issuing any fixes for this, we鈥檝e got a brand-new solution in the pipeline slated for next year! So, stay tuned for that.
In the meantime, keep utilizing those commands and stay tuned for more updates. We鈥檙e committed to keeping you in the loop every step of the way.

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

No branches or pull requests

8 participants