forcedotcom / lwc-dev-server-feedback

LWC Local Development
BSD 3-Clause "New" or "Revised" License
45 stars 10 forks source link

[MODULE_NOT_FOUND] Error Plugin: @salesforce/lwc-dev-server: Cannot find module '/User.../sfdx/node_modules/@salesforce/lwc-dev-server/dist/cli/commands/force/lightning/lwc/start.d' #100

Open softectonic opened 3 years ago

softectonic commented 3 years ago

After installing lwc-dev-server, the following error pops up in the terminal when running any sfdx command, for example, sfdx force:auth:web:login. Meanwhile lwc-dev-server command to start the server ran successfully despite the error.

07:48:47.192 sfdx force:auth:web:login --setalias xxxorg --instanceurl https://test.salesforce.com --setdefaultusername
(node:49188) [MODULE_NOT_FOUND] Error Plugin: @salesforce/lwc-dev-server: Cannot find module '/Users/softectonic/.local/share/sfdx/node_modules/@salesforce/lwc-dev-server/dist/cli/commands/force/lightning/lwc/start.d'
Require stack:
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/config/lib/plugin.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/config/lib/config.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/config/lib/index.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/command.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/index.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/dist/cli.js
- /Users/softectonic/.nvm/versions/node/v12.18.1/lib/node_modules/sfdx-cli/bin/run
module: @oclif/config@1.17.0
task: toCached
plugin: @salesforce/lwc-dev-server
root: /Users/tectonic/.local/share/sfdx/node_modules/@salesforce/lwc-dev-server
See more details with DEBUG=*
Successfully authorized xxxxxx@xxxxx.com with org ID 00D0m000000AXXXX

Expected behavior Expected sfdx commands to run without the above error as it was the behaviour prior to lwc-dev-server installation.

Desktop (please complete the following information):

Additional context

$ sfdx --version
sfdx-cli/7.82.1-0 darwin-x64 node-v12.18.1

$ sfdx plugins --core
@oclif/plugin-autocomplete 0.3.0
@oclif/plugin-commands 1.3.0 (core)
@oclif/plugin-not-found 1.2.4 (core)
@oclif/plugin-plugins 1.9.5 (core)
@oclif/plugin-warn-if-update-available 1.7.0 (core)
@oclif/plugin-which 1.0.3 (core)
@salesforce/lwc-dev-server 2.9.0
├─ @oclif/plugin-update 1.3.9
└─ @oclif/plugin-help 2.2.1
@salesforce/sfdx-trust 3.6.0 (core)
alias 1.1.3 (core)
analytics 1.12.1 (core)
auth 1.4.6 (core)
config 1.2.1 (core)
dependencies-cli 2.0.1 (link) /Users/softectonic/Documents/git/dependencies-cli-master
generator 1.1.3 (core)
salesforcedx 50.7.1 (core)
├─ schema 1.0.3 (core)
├─ @salesforce/sfdx-plugin-lwc-test 0.1.7 (core)
├─ templates 50.1.0 (core)
├─ custom-metadata 1.0.10 (core)
├─ salesforce-alm 50.7.1 (core)
└─ apex 0.1.4 (core)
sfdx-cli 7.82.1-0 (core)
shane-sfdx-plugins 4.43.0
├─ @mshanemc/plugin-streaming 1.1.7
└─ @mshanemc/sfdx-sosl 1.1.0
stale[bot] commented 3 years ago

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

git2gus[bot] commented 3 years ago

This issue has been linked to a new work item: W-8859853