forcedotcom / lwc-dev-server-feedback

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

@salesforce/lwc-dev-server causes large amount of warnings with latest SFDX CLI update due to node v14. #106

Open zerkz opened 3 years ago

zerkz commented 3 years ago

Describe the bug Updating to the latest SFDX CLI (v51) which uses node 14 (when using installer) causes a large amount of warnings on any sfdx command, due to the lwc-dev-server plugin.

To Reproduce Steps to reproduce the behavior:

  1. Install sfdx from https://developer.salesforce.com/tools/sfdxcli
  2. Run sfdx update
  3. Run sfdx plugins:install @salesforce/lwc-dev-server
  4. Run sfdx, see numerous warnings.
  5. Run sfdx plugins:uninstall @salesforce/lwc-dev-server
  6. Run sfdx, see numerous warnings are gone.

Expected behavior I would expect the warnings to be turned off, or @salesforce/lwc-dev-server be updated for node 14 compatibility.

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

aly76 commented 3 years ago

Uninstalling @salesforce/lwc-dev-server gets rid of the warnings, but also unlinks my plugin under development.

stale[bot] commented 3 years ago

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

uip-robot-zz commented 3 years ago

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

stale[bot] commented 3 years ago

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

BaronSam3di commented 3 years ago

Uninstalling @salesforce/lwc-dev-server gets rid of the warnings, but also unlinks my plugin under development.

Not for me :disappointed: ?? :

stale[bot] commented 3 years ago

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

benjaminloerincz commented 3 years ago

Is there a workaround for this?

eehjunggnujhee commented 2 years ago

I got the error disappeared by uninstalling both @lwc-dev-server and @sfdx-mobilesdk-plugin. upgrading or downgrading node versions did not help.. perhaps sfdx is built with node v14. This is my current version info sfdx-cli/7.123.0 darwin-x64 node-v14.18.1

YongFuYeAccount commented 2 years ago

how to solve the problem? the following sentences show in pycharm terminal

Starting dev server... (node:7388) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) (node:7388) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'find' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'head' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'set' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'test' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'to' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency (node:7388) Warning: Accessing non-existent property 'which' of module exports inside circular dependency

stale[bot] commented 2 years ago

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