LoginSignup
0
0

lwc-dev-serverのまとめ

Last updated at Posted at 2023-07-27

I'm trying to use the lwc-dev-server but the page keeps loading and never displays anything after executing the start local development server command.

画像見たときは気付かなかったけど、白い画面になっていますね。

image.png

既知の問題みたい

Describe the bug
With the latest release of the LWC Dev Server, there is a known issue where upon loading http://localhost:3333/ (or substitute with custom port), the user is presented with a blank screen.

Workaround
Restart local dev server.

https://github.com/forcedotcom/lwc-dev-server-feedback/issues/91

結局は再インストールしたらしい

Finally I was able to find the solution. I uninstalled sfdx cli completely, reinstalled it, installed dev-server and it worked fine. Apparently the installation was incomplete or damaged at first, but I worked with Apex, LWC calmly, I only had problems with the dev-server.

よくわからんけど、解決したらしい

HTTPError: Response code 403 (Forbidden)
Code: ERR_NON_2XX_3XX_RESPONSE

バージョンが非推奨になっている

Macにインストールできない( M1 ARMベースのCPU)

I was getting installation issues on my Mac as well. I finally figured the solution. SFDX CLI needs to be installed via NPM, and not directly with the installer. Also it is only Supported with Node V18. What I effectively did was:

Remove SF CLI: Link

  1. Used NVM to install and use Node 18( As I already had a different version installed)
  2. Installed SFDX CLI via NPM: Link
  3. I tried installing the plugin and it installed successfully.
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0