Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Local dev failing with "unusual" components (e.g: css only component, multiple js files in the same component)

オープン
#310 コメント 2 件 リアクション 1 件 担当者 1 名 GitHub で見る

@nrkruk がすでに取り組んでいます。

2025年1月10日 から。

評価

この issue はまだ評価されていません。

説明

BUG P2
Summary

While trying to launch an Experience Site, I having multiple errors that prevent usage. Two examples so far are:

  1. Components that are css only: the server launch fails with ServerError: An unexpected error occurred: "ENOENT: no such file or directory, open 'C:\Workspace\pbs\force-app\main\default\lwc\mycomponent\mycomponent.js' (Note: I can bypass this by adding an empty js file)
  2. Components that have multiple js files and import elements from them (import { Builder } from './builder';): server launch fails with LWR Diagnostic Error: An unexpected error occurred: "ENOENT: no such file or directory, open 'C:\Workspace\pbs\force-app\main\default\lwc\mycomponent\builder'
Additional Information

Screenshots:

image

Logs:

System Information

SF CLI: @salesforce/cli/2.70.7 win32-x64 node-v20.11.0
Plugin version: prerelease
Terminal: git bash

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.70.7",
  "nodeVersion": "node-v20.11.0",
  "osVersion": "Windows_NT 10.0.26100",
  "rootPath": "C:\\Users\\Fernando Gavinho\\AppData\\Roaming\\npm\\node_modules\\@salesforce\\cli",
  "shell": "C:\\Program Files\\Git\\usr\\bin\\bash.exe",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.13 (core)",
    "@oclif/plugin-commands 4.1.13 (core)",
    "@oclif/plugin-help 6.2.19 (core)",
    "@oclif/plugin-not-found 3.2.30 (core)",
    "@oclif/plugin-plugins 5.4.22 (core)",
    "@oclif/plugin-search 1.2.17 (core)",
    "@oclif/plugin-update 4.6.17 (core)",
    "@oclif/plugin-version 2.2.17 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.26 (core)",
    "@oclif/plugin-which 3.2.20 (core)",
    "@salesforce/cli 2.70.7 (core)",
    "apex 3.6.7 (core)",
    "api 1.3.2 (core)",
    "auth 3.6.80 (core)",
    "data 3.13.1 (core)",
    "deploy-retrieve 3.15.20 (core)",
    "info 3.4.27 (core)",
    "lightning-dev 2.8.0 (user) published 19 days ago (Thu Dec 19 2024) (latest is 1.10.0)",
    "limits 3.3.42 (core)",
    "marketplace 1.3.7 (core)",
    "org 5.2.9 (core)",
    "packaging 2.9.6 (core)",
    "schema 3.3.44 (core)",
    "settings 2.4.9 (core)",
    "sobject 1.4.46 (core)",
    "telemetry 3.6.27 (core)",
    "templates 56.3.33 (core)",
    "trust 3.7.50 (core)",
    "user 3.6.4 (core)"
  ]
}

OS: Windows

Experience Sites Only:

{
  "orgId": "00DPv000001Iw8D",
  "siteId": "0DMPv0000001Lf8",
  "clwrVersion": "254.159",
  "coreVersion": "254.2",
  "coreChangelist": "50901517",
  "bundleGenerationDate": "Jan 8, 2025 1:11:27 PM",
  "siteTemplateName": "talon-template-byo",
  "deployTarget": "CORE"
}
主要言語
TypeScript
スター
19
フォーク
19
平均マージ
3日 12時間
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

salesforcecli/plugin-lightning-dev のほかの issue

salesforcecli/plugin-lightning-dev の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。