You need to sign in to do that
Don't have an account?
Asad Mahmood 6
Trying to create single page application using LWC
Hi guys,
i'm new to salesforce and my main front end development is mainly Angular.
I am trying to create a lightning web component and which will load/display different components based on user input (clicks). I thought, i will try to do this in SPA instead of if/hide.
I came across library called Navigo and I'm trying to import this library in my component (SFDX project) but it is failing with following error:
Invalid reference navigo of type module in file appContainer.js
i have added dev dependencies navigo:
"devDependencies": {
"@prettier/plugin-xml": "^0.7.0",
"@salesforce/eslint-config-lwc": "^0.4.0",
"@salesforce/sfdx-lwc-jest": "^0.7.0",
"eslint": "^5.16.0",
"prettier": "^1.19.1",
"prettier-plugin-apex": "^1.0.0",
"navigo": "^7.1.2"
}
is it possible to create SPA in Salesforce using LWC?
thanks,
Asad
i'm new to salesforce and my main front end development is mainly Angular.
I am trying to create a lightning web component and which will load/display different components based on user input (clicks). I thought, i will try to do this in SPA instead of if/hide.
I came across library called Navigo and I'm trying to import this library in my component (SFDX project) but it is failing with following error:
Invalid reference navigo of type module in file appContainer.js
i have added dev dependencies navigo:
"devDependencies": {
"@prettier/plugin-xml": "^0.7.0",
"@salesforce/eslint-config-lwc": "^0.4.0",
"@salesforce/sfdx-lwc-jest": "^0.7.0",
"eslint": "^5.16.0",
"prettier": "^1.19.1",
"prettier-plugin-apex": "^1.0.0",
"navigo": "^7.1.2"
}
is it possible to create SPA in Salesforce using LWC?
thanks,
Asad
Yes, you can create SPA with lightning components.
Review below links.
https://developer.salesforce.com/events/webinars/singlepagelightning
https://developer.salesforce.com/blogs/2020/02/designing-lightning-pages-for-scale.html
Thanks,
Vinay Kumar
Hello,
You can create SPA using LWC quite easily.
Container
Navigation
PagesHere you can find more details: https://beyondthecloud.dev/blog/salesforce-spa-using-lwc