@decocms/blocks-admin 7.16.2 → 7.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/blocks-admin",
3
- "version": "7.16.2",
3
+ "version": "7.16.4",
4
4
  "type": "module",
5
5
  "description": "Deco admin protocol: /live/_meta, /.decofile, /deco/invoke, /deco/render, plus admin-facing site setup and commerce-app auto-configuration",
6
6
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "lint:unused": "knip"
26
26
  },
27
27
  "dependencies": {
28
- "@decocms/blocks": "7.16.2"
28
+ "@decocms/blocks": "7.16.4"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": "^19.0.0",
@@ -95,8 +95,21 @@ async function configureAllApps(
95
95
  handlers: mod.handlers,
96
96
  };
97
97
  apps.push(withHandlers);
98
- } catch {
99
- // App module missing, configure threw, or block was malformed — skip.
98
+ } catch (err) {
99
+ // The app is present in the decofile (block matched) but couldn't be
100
+ // configured — module load failed, configure() threw, or the block was
101
+ // malformed. We still skip it so one broken app can't take down setup,
102
+ // but we must NOT swallow silently: a failure here means the app's
103
+ // loaders/actions never register, so its sections resolve to null at
104
+ // runtime with no other signal. Common cause: the registry entry's
105
+ // `module: () => import("...")` dynamic import failing to resolve in a
106
+ // production bundle (works under `vite dev`) — the fix is a static module
107
+ // reference in the app's registry entry.
108
+ console.error(
109
+ `[autoconfigApps] failed to configure app "${entry.blockKey}" — its ` +
110
+ `loaders/actions will NOT be registered (matching sections resolve to null):`,
111
+ err,
112
+ );
100
113
  }
101
114
  }
102
115