Closed brianmfear closed 1 week ago
@brianmfear thanks for opening this. Node 22 isn't supported yet. see what versions are supported here, as Managed Runtime is the currently targeted deployment infrastructure.
We intend to add Node 22 support closer to the end of 2024, once our underlying public cloud provider also adds similar support.
Please use Node 20 in the meantime.
Summary
After npm init lwr@latest and installing dependencies, starting the server (npm run dev) emits this message:
Attempting to resolve with npm install pwa-kit-runtime results in the following:
Steps To Reproduce
Expected result
Everything should work. Opening a browser should show the hello world app with Codey the Bear.
Actual result
Console errors:
Error: [LWC error]: LWC WARNING: current engine is v5.0.0, but template was compiled with v6.6.5. Please update your compiled code or LWC engine so that the versions match. No further warnings will appear. at log (lwc.js:557:11) at logError (lwc.js:564:3) at checkVersionMismatch (lwc.js:3142:7) at registerTemplate (lwc.js:3164:5) at example_app_app_html.js:14:16
Uncaught (in promise) TypeError: node.cloneNode is not a function at cloneNode (lwc.js:8601:19) at mountStatic (lwc.js:4728:27) at mount (lwc.js:4618:7) at mountVNodes (lwc.js:4875:7) at updateStaticChildren (lwc.js:5370:5) at patchChildren (lwc.js:4558:5) at lwc.js:6755:9 at runWithBoundaryProtection (lwc.js:6985:5) at patchShadowRoot (lwc.js:6750:7) at rehydrate (lwc.js:6733:5)
Browser: Version 125.0.6422.112 (Official Build) (64-bit) Node version: Node 22.1.0 pwa-kit version: ??? Desktop OS: Microsoft Windows [Version 10.0.22621.3593] (Windows 11) Mobile Device Info: (N/A)