Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fix: dashboard failing to start in newly created projects (#14745)
Damian Legawiec54b3607ece6a
diff --git a/package.json b/package.jsonindex 6fc7b8175d..ac708808b1 100644--- a/package.json+++ b/package.json@@ -52,7 +52,7 @@"node": ">=22"},"dependencies": {- "@base-ui/react": "1.5.0",+ "@base-ui/react": "1.8.0","@spree/cli": "workspace:*"}}diff --git a/packages/dashboard-core/CHANGELOG.md b/packages/dashboard-core/CHANGELOG.mdindex ff97c8c5d9..e47b6bb5c0 100644--- a/packages/dashboard-core/CHANGELOG.md+++ b/packages/dashboard-core/CHANGELOG.md@@ -1,5 +1,13 @@# @spree/dashboard-core+## 1.0.0-beta.7++### Patch Changes++- [`928c1ba`](https://github.com/spree/spree/commit/928c1bac9370491fa45a3a38062550b0e98cb95a) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Fixed the dashboard failing to start in newly created projects.++ Since 1.0.0-beta.4, a fresh project's dashboard stopped before rendering with `SyntaxError: ... does not provide an export named 'useSyncExternalStore'`. The store setup form had switched to deep imports into `@spree/dashboard-ui` and `@spree/dashboard-core`, which makes Vite handle Base UI in a way that leaves one of its dependencies unconverted. The form uses the package entry points again. Base UI returns to 1.8.0; the 1.5.0 pin in the previous release did not help.+## 1.0.0-beta.6## 1.0.0-beta.5diff --git a/packages/dashboard-core/package.json b/packages/dashboard-core/package.jsonindex 95d8be2ccb..ac24432ec3 100644--- a/packages/dashboard-core/package.json+++ b/packages/dashboard-core/package.json@@ -1,7 +1,7 @@{"name": "@spree/dashboard-core","license": "MIT",- "version": "1.0.0-beta.6",+ "version": "1.0.0-beta.7","description": "Spree Dashboard framework — registries (table, nav, slot, settings-nav), providers (auth, permission, store), admin SDK client, generic infra hooks, and the defineDashboardPlugin extension API. Developer Preview.","author": "Vendo Connect Inc.","homepage": "https://spreecommerce.org",diff --git a/packages/dashboard-ui/CHANGELOG.md b/packages/dashboard-ui/CHANGELOG.mdindex 9f7abc1f77..bc5d3fb6eb 100644--- a/packages/dashboard-ui/CHANGELOG.md+++ b/packages/dashboard-ui/CHANGELOG.md@@ -1,5 +1,13 @@# @spree/dashboard-ui+## 1.0.0-beta.7++### Patch Changes++- [`928c1ba`](https://github.com/spree/spree/commit/928c1bac9370491fa45a3a38062550b0e98cb95a) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Fixed the dashboard failing to start in newly created projects.++ Since 1.0.0-beta.4, a fresh project's dashboard stopped before rendering with `SyntaxError: ... does not provide an export named 'useSyncExternalStore'`. The store setup form had switched to deep imports into `@spree/dashboard-ui` and `@spree/dashboard-core`, which makes Vite handle Base UI in a way that leaves one of its dependencies unconverted. The form uses the package entry points again. Base UI returns to 1.8.0; the 1.5.0 pin in the previous release did not help.+## 1.0.0-beta.6### Patch Changesdiff --git a/packages/dashboard-ui/package.json b/packages/dashboard-ui/package.jsonindex e6a9af2b89..dca481ec8b 100644--- a/packages/dashboard-ui/package.json+++ b/packages/dashboard-ui/package.json@@ -1,7 +1,7 @@{"name": "@spree/dashboard-ui","license": "MIT",- "version": "1.0.0-beta.6",+ "version": "1.0.0-beta.7","description": "Spree Dashboard design system — shadcn primitives, headless composed components, and design tokens. Source-only package; consumers compile via their own Vite/Tailwind setup. Developer Preview.","author": "Vendo Connect Inc.","homepage": "https://spreecommerce.org",@@ -53,7 +53,7 @@"tailwindcss": "^4.2.4"},"dependencies": {- "@base-ui/react": "1.5.0",+ "@base-ui/react": "1.8.0","@dnd-kit/core": "6.3.1","@dnd-kit/sortable": "10.0.0","@dnd-kit/utilities": "3.2.2",diff --git a/packages/dashboard/CHANGELOG.md b/packages/dashboard/CHANGELOG.mdindex 8cfce6830c..b5292c4666 100644--- a/packages/dashboard/CHANGELOG.md+++ b/packages/dashboard/CHANGELOG.md@@ -1,5 +1,17 @@# @spree/dashboard+## 1.0.0-beta.7++### Patch Changes++- [`928c1ba`](https://github.com/spree/spree/commit/928c1bac9370491fa45a3a38062550b0e98cb95a) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Fixed the dashboard failing to start in newly created projects.++ Since 1.0.0-beta.4, a fresh project's dashboard stopped before rendering with `SyntaxError: ... does not provide an export named 'useSyncExternalStore'`. The store setup form had switched to deep imports into `@spree/dashboard-ui` and `@spree/dashboard-core`, which makes Vite handle Base UI in a way that leaves one of its dependencies unconverted. The form uses the package entry points again. Base UI returns to 1.8.0; the 1.5.0 pin in the previous release did not help.++- Updated dependencies [[`928c1ba`](https://github.com/spree/spree/commit/928c1bac9370491fa45a3a38062550b0e98cb95a)]:+ - @spree/[email protected]+ - @spree/[email protected]+## 1.0.0-beta.6### Patch Changesdiff --git a/packages/dashboard/package.json b/packages/dashboard/package.jsonindex e4c1d8582a..b465013de4 100644--- a/packages/dashboard/package.json+++ b/packages/dashboard/package.json@@ -1,7 +1,7 @@{"name": "@spree/dashboard","license": "MIT",- "version": "1.0.0-beta.6",+ "version": "1.0.0-beta.7","description": "Spree Dashboard app shell — the next-gen React admin for Spree Commerce. Routes, resource hooks, schemas, locales, and the <Dashboard /> component. Source-only package; hosts compile it via @spree/dashboard/vite. Developer Preview.","author": "Vendo Connect Inc.","homepage": "https://spreecommerce.org",@@ -57,7 +57,7 @@"prepublishOnly": "tsup"},"dependencies": {- "@base-ui/react": "1.5.0",+ "@base-ui/react": "1.8.0","@dnd-kit/core": "^6.3.1","@dnd-kit/sortable": "^10.0.0","@dnd-kit/utilities": "^3.2.2",diff --git a/packages/dashboard/src/components/spree/store-setup-fields.tsx b/packages/dashboard/src/components/spree/store-setup-fields.tsxindex 812d19fd62..5051936056 100644--- a/packages/dashboard/src/components/spree/store-setup-fields.tsx+++ b/packages/dashboard/src/components/spree/store-setup-fields.tsx@@ -1,10 +1,10 @@import type { SetupCountry } from '@spree/admin-sdk'-// Deep imports keep hosts that mount only this form clear of the framework-// barrel; the i18n import registers the translations the labels use.-import '@spree/dashboard-core/lib/i18n'-import { useDisplayName } from '@spree/dashboard-core/hooks/use-display-name'-import { ALL_CURRENCY_CODES } from '@spree/dashboard-core/lib/currencies'-import { CountryFlag } from '@spree/dashboard-ui/spree/country-flag'+// Barrel imports only. Deep imports here (`@spree/dashboard-ui/ui/select` and+// friends) make Vite prebundle each subpath as its own dependency in an+// installed app, which leaves Base UI's CommonJS shim unconverted and stops+// the dashboard from starting. The monorepo cannot show this: its workspace+// links are treated as source.+import { ALL_CURRENCY_CODES, useDisplayName } from '@spree/dashboard-core'import {Combobox,ComboboxButtonTrigger,@@ -14,16 +14,15 @@ import {ComboboxList,ComboboxSearch,ComboboxTriggerPlaceholder,-} from '@spree/dashboard-ui/ui/combobox'-import { Input } from '@spree/dashboard-ui/ui/input'-import { Label } from '@spree/dashboard-ui/ui/label'-import {+ CountryFlag,+ Input,+ Label,Select,SelectContent,SelectItem,SelectTrigger,SelectValue,-} from '@spree/dashboard-ui/ui/select'+} from '@spree/dashboard-ui'import { useCallback, useEffect, useMemo } from 'react'import { Controller, type FieldErrors, type UseFormReturn } from 'react-hook-form'import { useTranslation } from 'react-i18next'diff --git a/packages/seller-dashboard/CHANGELOG.md b/packages/seller-dashboard/CHANGELOG.mdindex c4966e62db..57b5e08a40 100644--- a/packages/seller-dashboard/CHANGELOG.md+++ b/packages/seller-dashboard/CHANGELOG.md@@ -1,5 +1,17 @@# @spree/seller-dashboard+## 1.0.0-beta.7++### Patch Changes++- [`928c1ba`](https://github.com/spree/spree/commit/928c1bac9370491fa45a3a38062550b0e98cb95a) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Fixed the dashboard failing to start in newly created projects.++ Since 1.0.0-beta.4, a fresh project's dashboard stopped before rendering with `SyntaxError: ... does not provide an export named 'useSyncExternalStore'`. The store setup form had switched to deep imports into `@spree/dashboard-ui` and `@spree/dashboard-core`, which makes Vite handle Base UI in a way that leaves one of its dependencies unconverted. The form uses the package entry points again. Base UI returns to 1.8.0; the 1.5.0 pin in the previous release did not help.++- Updated dependencies [[`928c1ba`](https://github.com/spree/spree/commit/928c1bac9370491fa45a3a38062550b0e98cb95a)]:+ - @spree/[email protected]+ - @spree/[email protected]+## 1.0.0-beta.6### Patch Changesdiff --git a/packages/seller-dashboard/package.json b/packages/seller-dashboard/package.jsonindex 46fa6bc248..3e7d19e174 100644--- a/packages/seller-dashboard/package.json+++ b/packages/seller-dashboard/package.json@@ -1,6 +1,6 @@{"name": "@spree/seller-dashboard",- "version": "1.0.0-beta.6",+ "version": "1.0.0-beta.7","license": "MIT","type": "module","description": "Spree marketplace seller panel — the seller-facing counterpart to the admin dashboard.",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex abdfbbe4b3..604bd7c577 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -5,8 +5,8 @@ settings:excludeLinksFromLockfile: falseoverrides:- '@base-ui/react': 1.5.0- '@base-ui/utils': 0.2.9+ '@base-ui/react': 1.8.0+ '@base-ui/utils': 0.4.0react-redux: 9.3.0esbuild: ^0.28.1vite: ^8.0.16@@ -43,8 +43,8 @@ importers:.:dependencies:'@base-ui/react':- specifier: 1.5.0- version: 1.5.0(@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])+ specifier: 1.8.0+ version: 1.8.0(@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])'@spree/cli':specifier: workspace:*version: link:packages/cli@@ -169,8 +169,8 @@ importers:packages/dashboard:dependencies:'@base-ui/react':- specifier: 1.5.0- version: 1.5.0(@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])+ specifier: 1.8.0+ version: 1.8.0(@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])'@dnd-kit/core':specifier: ^6.3.1@@ -524,8 +524,8 @@ importers:packages/dashboard-ui:dependencies:'@base-ui/react':- specifier: 1.5.0- version: 1.5.0(@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])+ specifier: 1.8.0+ version: 1.8.0(@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])'@dnd-kit/core':specifier: 6.3.1@@ -987,8 +987,8 @@ packages:resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==}engines: {node: '>=6.9.0'}- '@base-ui/[email protected]':- resolution: {integrity: sha512-z1gSAlced1yY+iM+mHDEtIkD8UI3Ebs52MuBPxvV6f5hRutk+xvCH/wuB7hDqDzK9JG5FoMz5nhrqtSs1wjt1A==}+ '@base-ui/[email protected]':+ resolution: {integrity: sha512-P0/1sxo6SBVZOklKMIedvTWqw2s2IQzi9x5bIVsXu980cuSOD4NeuRSs+/L7LZQfDkZP/uRZyGPyfFl/B1oH+Q==}engines: {node: '>=14.0.0'}peerDependencies:'@date-fns/tz': ^1.2.0@@ -1004,8 +1004,8 @@ packages:date-fns:optional: true- '@base-ui/[email protected]':- resolution: {integrity: sha512-x/PDDCYzoqPpjrdyb3VcyylTI2IjUXEtYDGi5foh7KsnmNJIIaVwA2GLgDH1dps1GgXiJbA60hM+AyuTfQzIvw==}+ '@base-ui/[email protected]':+ resolution: {integrity: sha512-bO9fz25kKtPf+aZVyfQrC0PDmJdmVni31W2hCS5/Owb+inwdIL3XU26pCPRPlt4LSxZrBgLwubXQXQlKaFEZzw==}peerDependencies:'@types/react': ^17 || ^18 || ^19react: ^17 || ^18 || ^19@@ -4891,10 +4891,10 @@ snapshots:'@babel/helper-string-parser': 7.27.1'@babel/helper-validator-identifier': 7.28.5- '@base-ui/[email protected](@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])':+ '@base-ui/[email protected](@date-fns/[email protected])(@types/[email protected])([email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.29.7- '@base-ui/utils': 0.2.9(@types/[email protected])([email protected]([email protected]))([email protected])+ '@base-ui/utils': 0.4.0(@types/[email protected])([email protected]([email protected]))([email protected])'@floating-ui/utils': 0.2.12react: 19.2.6@@ -4905,7 +4905,7 @@ snapshots:'@types/react': 19.2.14date-fns: 4.1.0- '@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':+ '@base-ui/[email protected](@types/[email protected])([email protected]([email protected]))([email protected])':dependencies:'@babel/runtime': 7.29.7'@floating-ui/utils': 0.2.12diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 13e97b3e79..6b096c2d79 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -44,21 +44,22 @@ allowBuilds:# fixes here. Revisit when the upstream dependents pull the fixes in on# their own and these become no-ops.overrides:- # Base UI is held at 1.5.0 deliberately, not merely pinned. @base-ui/react- # 1.6.0 moved to @base-ui/utils 0.3.x, which added a `useStore` helper- # importing `useSyncExternalStore` by NAME from the CommonJS- # `use-sync-external-store` shim. Vite converts CommonJS while prebundling a- # dependency, but @spree/dashboard-ui ships source: in this repo it is a- # workspace link Vite crawls as app source, while an installed copy sits in- # node_modules and is not crawled, so that file reaches the browser with the- # named CommonJS import intact and the dashboard dies with a SyntaxError- # before rendering. 1.5.0 pins utils 0.2.9, which has no such file.+ # Base UI is pinned exactly, never caret-ranged: @spree/dashboard-ui ships+ # source, so whatever a consumer installs is compiled into their app by+ # their own Vite. A floating range means a scaffolded project builds against+ # a version nobody here tested.#- # Only a scaffolded app reproduces this — the monorepo cannot, because of- # the workspace link. Verify any bump by scaffolding a project, never by- # running the starter here.- '@base-ui/react': 1.5.0- '@base-ui/utils': 0.2.9+ # 1.8.0 resolves @base-ui/utils 0.4.0. Do not move below it: utils 0.2.x and+ # 0.3.x ship esm/store/useStore.js, which imports useSyncExternalStore BY+ # NAME from the CommonJS use-sync-external-store shim. Vite converts+ # CommonJS while prebundling an ordinary dependency, but an installed+ # dashboard-ui is source Vite does not crawl, so that file reaches the+ # browser unconverted and the dashboard dies with a SyntaxError. 0.4.0+ # dropped that ESM variant. Verify any change by installing the published+ # packages into the dashboard-starter template — the workspace symlink in+ # this repo hides the difference.+ '@base-ui/react': 1.8.0+ '@base-ui/utils': 0.4.0# react-redux 9.2.0 (transitive via recharts, whose range is 8.x || 9.x)# published without the provenance 9.1.0 had, so trustPolicy: no-downgrade# refuses it. 9.3.0 carries provenance again and is in range. Drop this once