Codesandbox 和导入 Github 使用 Vue-CLI 构建的 repos:TypeError Cannot read 属性 'toString' of undefined
Codesandbox and importing Github repos built with Vue-CLI: TypeError Cannot read property 'toString' of undefined
我有一个使用 Vue-Cli 构建的应用程序,它在本地运行良好,但是,当我将代码从 Github 导入 Codesandbox 时,出现以下错误:
我在这里变得波浪形的红色 line/error:
有人知道我需要做什么来修复吗?
您可以在此处访问沙箱:
https://codesandbox.io/s/funny-greider-ri1w7?file=/src/components/PhotoDetail.vue
删除组件中的空 <style>
标签,似乎它不能很好地与 Codesandbox 配合使用。
参考:
https://github.com/codesandbox/codesandbox-client/issues/1912#issuecomment-492518145
我有一个使用 Vue-Cli 构建的应用程序,它在本地运行良好,但是,当我将代码从 Github 导入 Codesandbox 时,出现以下错误:
我在这里变得波浪形的红色 line/error:
有人知道我需要做什么来修复吗?
您可以在此处访问沙箱: https://codesandbox.io/s/funny-greider-ri1w7?file=/src/components/PhotoDetail.vue
删除组件中的空 <style>
标签,似乎它不能很好地与 Codesandbox 配合使用。
参考: https://github.com/codesandbox/codesandbox-client/issues/1912#issuecomment-492518145