Z-J-wang / render-juypter-notebook-vue

The render-jupyter-notebook-vue is a vue component that renders the notebook file in vue. render-jupyter-notebook-vue是一个vue组件,实现了notebook文件在vue中的渲染。
https://z-j-wang.github.io/render-juypter-notebook-vue/
MIT License
21 stars 5 forks source link

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'cells') #27

Closed liuxu0718 closed 1 year ago

liuxu0718 commented 1 year ago

yarn add 后 引入组件RenderJupyterNotebook 发现控制台 报如下错误 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'cells') at new $c (index.js:27:17) at Proxy.mounted (RenderJupyterNotebook.vue:14:22) at runtime-core.esm-bundler.js:2757:40 at callWithErrorHandling (runtime-core.esm-bundler.js:173:22) at callWithAsyncErrorHandling (runtime-core.esm-bundler.js:182:21) at hook.weh.hook.weh (runtime-core.esm-bundler.js:2731:29) at flushPostFlushCbs (runtime-core.esm-bundler.js:359:46) at flushJobs (runtime-core.esm-bundler.js:413:9)

liuxu0718 commented 1 year ago

原来是因为我没导入.json文件