const schema = new Schema().register(AffineSchemas);
const collection = new DocCollection({ schema });
const doc = collection.createDoc({ id: 'page' });
const editor = new AffineEditorContainer();
// TypeError: Cannot read properties of null (reading 'load')
doc.load
⨯ node_modules/@blocksuite/blocks/dist/index.js (93:1) @ eval
⨯ Internal error: Error: Seems like you are importing @blocksuite/blocks in SSR mode. Which is not supported for now.
at eval (./node_modules/@blocksuite/blocks/dist/index.js:681:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
digest: "4163597053"
91 | }
92 | if (typeof window === 'undefined') {
> 93 | throw new Error('Seems like you are importing @blocksuite/blocks in SSR mode. Which is not supported for now.');
| ^
94 | }
95 | env[importIdentifier] = true;
96 | //# sourceMappingURL=index.js.map
It works fine in 0.14.0.