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

LWC Local Development - Feedback Requested #143

Open
AnanyaJha opened this issue Oct 12, 2022 · 18 comments
Open

LWC Local Development - Feedback Requested #143

AnanyaJha opened this issue Oct 12, 2022 · 18 comments

Comments

@AnanyaJha
Copy link

Hi all! As we gear up for the new year, we'd like to hear from you all on any feedback for the Local Development Server. The Local Development Server is a Salesforce CLI plug-in that configures and runs a Lightning Web Components-enabled server on your computer. You can develop Lightning web components and see live changes without publishing the components to an org.

We're aware of the updates that need to be made to the Local Dev Server to stay in line with latest features released by the platform - please upvote this issue if you're eagerly awaiting those changes! If you're looking for new features to be added to this product to help with usability, please leave a comment below.

Thank you all for the patience and we're actively looking to hear from you all about this product - all👂

@AnanyaJha AnanyaJha pinned this issue Oct 12, 2022
@AnanyaJha AnanyaJha changed the title Local Development Server Updates Local Development Server - Feedback Requested Oct 12, 2022
@zerkz
Copy link

zerkz commented Oct 18, 2022

I've used the dev server in the past and it is a productivity multiplier if you are not restricted by any of the limitations (unless the component is super crazy, it's fairly stable!). Additionally, there's a benefit of familiarity for developers coming from React/VueJS/modern Javascript frameworks which often have hot-reloading tools.

The developer feedback cycle is extremely important for productivity. Personally, it helps me stay focused and on task if I'm not having to wait for my changes to be deployed, and all the edge caching propagation that seems to come with it on the Salesforce platform. This is my vote for doing so.

Initial suggestions --

  • open source the dev server to allow for easier debugging/suggestions/contributions from the community.
  • upgrade all dependencies to the latest compatible with the current node LTS.
  • a document that the community can contribute to for specific limitations/gotchas with the dev server. We know there's some limitations documented, but it might be helpful to have "wontfix/cantfix" limitations documented somewhere.

Thanks for taking the time to solicit feedback!

@AnanyaJha AnanyaJha changed the title Local Development Server - Feedback Requested LWC Local Development - Feedback Requested Oct 20, 2022
@stale
Copy link

stale bot commented Oct 29, 2022

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale
Copy link

stale bot commented Nov 12, 2022

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Nov 12, 2022
@nstuyvesant
Copy link

nstuyvesant commented Feb 15, 2023

Coming from using SvelteKit with built-in vite, my view may be tainted as it's such a great development experience.

With the LWC Local Development Server, I've been stung in these areas:

  1. CSS custom properties - can't use them with any components even though the docs say styling hooks are the way to go. One of the other open issues has a bunch of people commenting on this but it keeps getting demoted to p3 because time goes by with no resolution.
  2. Can't use LightningModal - "Couldn't find the compiled component" error and HTTP 500s for http://localhost:3333/webruntime/component/latest/dev/en-US/lightning/modal, modalFooter and modalBody.
  3. Can't use self-closing HTML tags - not sure why.
  4. Many utility icons listed on Salesforce's site are not part of the LWC Local Development Server.
  5. Note sure why but the Local Development Server says it's using API version 49. My project is API version 56. Why doesn't the Local Development Server read my API version from sfdx-project.json?
  6. Some components just won't work on Local Development Server and the errors are not helpful to determine the cause. I just install them into a scratch org and they work.

In general, there's a lot of promise to Local Development Server as long as the quality issues are addressed. Until then, it seems I will have to go the more time-consuming route of installing into an org and testing there.

@stale stale bot removed the type:bug-p3 label Feb 15, 2023
@lukethacoder
Copy link

Proper CSS Variables Support has been a blocker from using this tool for the past 3 years, sadly.

Are there any open source alternatives? or is this not possible given how the lwc-dev-server uses super secret hidden closed source code that Salesforce won't share? Surely someone from the recent layoffs has a copy of the closed source code 😉

Would love to see majority of the other bugs fixed too, especially around the platform changes that seemed to have moved forward whilst leaving this dev server in the dirt.

@stale
Copy link

stale bot commented Mar 25, 2023

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@AllanOricil
Copy link

AllanOricil commented May 18, 2023

@AnanyaJha
Really good product. If u fix those css errors and enable the server to render components that use assets from other packages, then I would try to use it again.

But I also think that this plugin could be enhanced to enable developers to ship entire lwc apps instead of just simple components.

We need something like Nuxt offers. A framework for building lwc apps. In the future, I imagine developers writting entire lwc apps locally, and then shipping them as experience cloud sites, instead of interacting with that horrible experience builder.

@stale stale bot removed the type:bug-p3 label May 18, 2023
@stale
Copy link

stale bot commented Jun 8, 2023

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Jun 8, 2023
@jsmithdev
Copy link

@AnanyaJha
I use this every day. Saves so much time and allows me to develop much more naturally. I know others who do as well but I'm evangelizing it at my org because, once it's up and running, it's a game changer.

If this is picked back up, I believe a good starting issue is:
#149

That one causes us not to use the new directives (lwc:if, etc) which stifles adoption, loss of code quality benefits, etc.

If this is not going to be picked up for some reason, please open source it. Salesforce development hasn't been aligned with web development with tools like this for so long, I think the newer paradigm shift is taking some longer than others -- but I've seen that once they "get it", they love it, so I believe this is worth keeping around regardless of current numbers, etc.

Thanks for your time and the great product that really saves so much precious time 🎉

@stale stale bot removed the type:bug-p3 label Jun 14, 2023
@madsenemark
Copy link

Do you have any plans to open-source this? I see no reason not to open up for this since many competent developers are eager to help improve this product.

@stale
Copy link

stale bot commented Aug 12, 2023

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@stale stale bot added the type:bug-p3 label Aug 12, 2023
@alanjaouen
Copy link

I'm using this tool a lot, but the lack of update on lwc feature (directive, css, etc) is blocker

Would be great to open source it if there is no bandwitch on your side to maintains this

@stale stale bot removed the type:bug-p3 label Oct 7, 2023
@kovdmm
Copy link

kovdmm commented Oct 18, 2023

We cannot use @AuraEnabled methods anymore with localdevserver and scratch orgs. Please see the discussions: #155

@todthomson
Copy link

todthomson commented Feb 2, 2024

It would be amazing if you could fix this issue: #76

Copy link

stale bot commented Mar 17, 2024

This issue has been automatically marked as type:bug-p3 because it has not had recent activity.

@lukethacoder
Copy link

lukethacoder commented Apr 6, 2024

Sharing because it is such a time saver when building for on-platform.

After waiting about 4 years (and then seeing we won't be getting anything until 2025) I decided to build something myself over a weekend or two.

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

@zerkz
Copy link

zerkz commented Apr 11, 2024

@lukethacoder thanks! I will definitely be giving this a shot. Admittedly, it's a little sad that it came to you, a lone developer, building this out. More so proves where Salesforce's resource prioritization lies, and it's not helping LWC developers.

@adrocodes
Copy link

@lukethacoder absolute legend! Thank you for spending the time on this 🙌

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