forcedotcom / lwc-dev-server-feedback

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

Compile error when using "getRecordNotifyChange" #132

Open bfeldatwilio opened 2 years ago

bfeldatwilio commented 2 years ago

Describe the bug "getRecordNotifyChange" is not exported from "lightning-pkg/src/lightning/uiRecordApi/uiRecordApi.js

To Reproduce Steps to reproduce the behavior:

  1. Create a component that imports "getRecordNotifyChange" from lightning/uiRecordApi
  2. Use the component: getRecordNotifyChange([{ recordId: this.recordId }]);
  3. Run local dev and navigate to the component.
  4. Note compile error in terminal "Error during compilation: 'getRecordNotifyChange' is not exported by ../../.local/share/sfdx/node_modules/@salesforce/lwc-dev-server-dependencies/vendors/dependencies-226/lightning-pkg/src/lightning/uiRecordApi/uiRecordApi.js
  5. "force/lds" does export getRecordNotifyChange so adding it to uiRecordApi.js resolved the issue for me.

Expected behavior No compile error

Screenshots Steps has the exact error viewed in the terminal

Desktop (please complete the following information):

Additional context Adding getRecordNotifyChange to the export list in uiRecordApi.js resolves this issue.

stale[bot] commented 2 years ago

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