Skip to content

Commit ca52675

Browse files
Copilothotlong
andcommitted
fix: remove ConsolePlugin import from CRM config to fix Vite browser build
The CRM example config imported ConsolePlugin (Node.js server-side code using url, path, fs builtins) which got pulled into the Vite browser build via: objectstack.shared.ts → @object-ui/example-crm/objectstack.config → plugin.ts This caused the build to fail with: "fileURLToPath" is not exported by "__vite-browser-external" Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 8f2a7e7 commit ca52675

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

examples/crm/objectstack.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { OrderObject } from './src/objects/order.object';
88
import { UserObject } from './src/objects/user.object';
99
import { ProjectObject } from './src/objects/project.object';
1010
import { EventObject } from './src/objects/event.object';
11-
import { ConsolePlugin } from '../../apps/console/plugin';
1211

1312
export default defineStack({
1413
objects: [
@@ -688,7 +687,5 @@ export default defineStack({
688687
]
689688

690689
},
691-
plugins: [
692-
new ConsolePlugin(),
693-
],
690+
plugins: [],
694691
} as any);

0 commit comments

Comments
 (0)