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

ความคิดเห็น • 19

  • @theokofi
    @theokofi 10 หลายเดือนก่อน +1

    Could I create LWR sites with a react framework like NextJS? It appears I should be able to do that.

  • @user-si6rq8dl6x
    @user-si6rq8dl6x ปีที่แล้ว

    This has been really helpful and inspiring

  • @user-rd4oo1jg5g
    @user-rd4oo1jg5g 6 หลายเดือนก่อน

    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?

  • @deepaksingh-pj2bs
    @deepaksingh-pj2bs ปีที่แล้ว +2

    Hi
    Is there any example for dynamic routing in LWR. for example: product/:id need it for SPA

    • @siddhantraj5323
      @siddhantraj5323 ปีที่แล้ว

      is the sfdc documentation enough to deep dive into it? where did u learn it from ?

  • @saikarthik2315
    @saikarthik2315 ปีที่แล้ว

    thanks for sharing great content. What is the shortcut to pause the local server running on the port.

  • @antonds
    @antonds ปีที่แล้ว

    Great lesson!

  •  ปีที่แล้ว +1

    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

    • @vijendhark1542
      @vijendhark1542 ปีที่แล้ว +1

      i am also facing the same issue. if you find any solution pls let know.

    •  ปีที่แล้ว

      @SalesforceDevs @julianduque any idea?

    • @martinmessina7768
      @martinmessina7768 11 หลายเดือนก่อน

      @ @vijendhark1542 Remove "moduleProviders" from lwr.config.json file

    • @user-nc3lh2hb6h
      @user-nc3lh2hb6h 7 หลายเดือนก่อน +1

      Remove moduleProviders array property from lwr.config.json file

    •  7 หลายเดือนก่อน

      @@user-nc3lh2hb6h Thanks, that works for me!

  • @user-ej6lu1kx7p
    @user-ej6lu1kx7p ปีที่แล้ว

    Can we deploy this on Heroku or render also

  • @rahulgawale
    @rahulgawale ปีที่แล้ว

    How can I deploy this website to firebase?

  • @ezpz4akash
    @ezpz4akash ปีที่แล้ว

    +1

  • @MrAsthana1
    @MrAsthana1 ปีที่แล้ว

    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'

    • @julianduque
      @julianduque ปีที่แล้ว +1

      Hey Vivek, what version of node are you using? ($ node -v)