codeLive: Creating LWR Static Sites on Node.js
ฝัง
- เผยแพร่เมื่อ 8 ก.ย. 2024
- Learn how to create a static site with LWR (Lightning Web Runtime)
Connect with Salesforce Developers:
Website: developer.sale...
Facebook: / salesforcedevs
Twitter: / salesforcedevs
LinkedIn: / salesforce-developers
Could I create LWR sites with a react framework like NextJS? It appears I should be able to do that.
This has been really helpful and inspiring
Hello, the video is great, I'm not clear about the difference between LWC and LWR. In the example, is a correct LWC component shown? Is all this delivered with the cms?
Hi
Is there any example for dynamic routing in LWR. for example: product/:id need it for SPA
is the sfdc documentation enough to deep dive into it? where did u learn it from ?
thanks for sharing great content. What is the shortcut to pause the local server running on the port.
Great lesson!
Glad you liked it!
I'm getting a weird error when I use {{lwr_resources | safe}}, it says that cannot find the module entry with specifier "@lwrjs/app-service/Home/module/esm". I tried with nodejs 16, 18, and 20 but I'm getting the same error. Is there a solution to this? LWR version: 0.9.4, Windows 11
i am also facing the same issue. if you find any solution pls let know.
@SalesforceDevs @julianduque any idea?
@ @vijendhark1542 Remove "moduleProviders" from lwr.config.json file
Remove moduleProviders array property from lwr.config.json file
@@user-nc3lh2hb6h Thanks, that works for me!
Can we deploy this on Heroku or render also
How can I deploy this website to firebase?
+1
while executing command npm run dev on terminal , it shows error node:vm module not found. Please help to resolve this issue.
PS D:\lwr-project> npm run dev
> lwr-project@0.0.1 dev D:\lwr-project
> lwr serve
[info] LWR Version: 0.8.8
Error: Cannot find module 'node:vm'
Require stack:
- D:\lwr-project
ode_modules\@locker
ear-membrane-node\dist\index.cjs.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Module.require (internal/modules/cjs/loader.js:957:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (D:\lwr-project
ode_modules\@locker
ear-membrane-node\dist\index.cjs.js:7:15)
at Module._compile (internal/modules/cjs/loader.js:1068:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
at Module.load (internal/modules/cjs/loader.js:933:32)
at Function.Module._load (internal/modules/cjs/loader.js:774:14)
at ModuleWrap. (internal/modules/esm/translators.js:199:29) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'D:\\lwr-project\
ode_modules\\@locker\
ear-membrane-node\\dist\\index.cjs.js'
Hey Vivek, what version of node are you using? ($ node -v)