Usually you will receive this error when your trying to import the navigation package of Salesforce for navigation in LWC.
Error Code:
import { LightningElement,api,track,wire } from 'lwc'; import { NavigationMixin } from 'lightning-navigation'; export default class YourClassName extends NavigationMixin(LightningElement) { // your code }
If you try to save the class with above code you will receive same error.So,to fix this issue please replace lightning-navigation with lightning/navigation while importing.
Solution:
import { LightningElement,api,track,wire } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; export default class YourClassName extends NavigationMixin(LightningElement) { // your code }
Hope this helps you..Enjoy..!
1342CC77FC
ReplyDeleteTakipçi Satın Al
3D Car Parking Para Kodu
Coin Kazanma
3D Car Parking Para Kodu
101 Okey Yalla Hediye Kodu