我有一个使用 Vue-Cli 构建的应用程序,它在本地运行良好,但是,当我将代码从 Github 导入 Codesandbox 时,我收到以下错误:
我在这里得到弯曲的红线/错误:
有谁知道我需要做些什么来修复?
您可以在此处访问沙箱: https ://codesandbox.io/s/funny-greider-ri1w7?file=/src/components/PhotoDetail.vue
我有一个使用 Vue-Cli 构建的应用程序,它在本地运行良好,但是,当我将代码从 Github 导入 Codesandbox 时,我收到以下错误:
我在这里得到弯曲的红线/错误:
有谁知道我需要做些什么来修复?
您可以在此处访问沙箱: https ://codesandbox.io/s/funny-greider-ri1w7?file=/src/components/PhotoDetail.vue
删除组件中的空<style>
标签,看起来它不能很好地与 Codesandbox 一起使用。
参考: https ://github.com/codesandbox/codesandbox-client/issues/1912#issuecomment-492518145