{"record":{"id":"a4496c67dc6d84ca","repo":"ueberdosis/tiptap","slug":"tiptap-error-the-editor-view-is-not-available","errorCode":null,"errorMessage":"[tiptap error]: The editor view is not available. Cannot access view['${key}']. The editor may not be mounted yet.","messagePattern":"\\[tiptap error\\]: The editor view is not available\\. Cannot access view\\['(.+?)'\\]\\. The editor may not be mounted yet\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/core/src/Editor.ts","lineNumber":365,"sourceCode":"        isDestroyed: false,\n      } as EditorView,\n      {\n        get: (obj, key) => {\n          if (this.editorView) {\n            // If the editor view is available, but the caller has a stale reference to the proxy,\n            // Just return what the editor view has.\n            return this.editorView[key as keyof EditorView]\n          }\n          // Specifically always return the most recent editorState\n          if (key === 'state') {\n            return this.editorState\n          }\n          if (key in obj) {\n            return Reflect.get(obj, key)\n          }\n\n          // We throw an error here, because we know the view is not available\n          throw new Error(\n            `[tiptap error]: The editor view is not available. Cannot access view['${key as string}']. The editor may not be mounted yet.`,\n          )\n        },\n      },\n    ) as EditorView\n  }\n\n  /**\n   * Returns the editor state.\n   */\n  public get state(): EditorState {\n    if (isDev && !this.hasWarnedStaleDecorationRead && isInDecorationApplyScope(this)) {\n      // Warn once per editor. The same read repeats on every transaction, and\n      // a decoration that dispatches from `create()` would flood the console.\n      this.hasWarnedStaleDecorationRead = true\n\n      console.warn(\n        '[tiptap warn]: `editor.state` was read while decoration `create()` was running. ' +","sourceCodeStart":347,"sourceCodeEnd":383,"githubUrl":"https://github.com/ueberdosis/tiptap/blob/496d53afd7e4e3c7424b4749adeff4f45e27ddb0/packages/core/src/Editor.ts#L347-L383","documentation":"Error \"[tiptap error]: The editor view is not available. Cannot access view['${key}']. The editor may not be mounted yet.\" thrown in ueberdosis/tiptap.","triggerScenarios":"Thrown at packages/core/src/Editor.ts:365 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"496d53afd7e4e3c7424b4749adeff4f45e27ddb0","analyzedAt":"2026-08-26T22:41:43.400Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}