我建立一个自定义事件日历Component
为我的瑜伽App
上codesandbox
。实际上,我本来打算在它上执行此操作IDE
,但是这种想法开始迅速发展,最终我使用了它。
我试图获得width
并height
从<div/>
使用ref={(el) => this.props.testing((this.container = el))
,然后试图访问的变暗componentDidMount()
,非常喜欢这个方案。
突然,我开始遇到以下错误codesandbox
:
TypeError
Failed to fetch
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.
This error overlay is powered by `react-error-overlay` used in `create-react-app`.
并在控制台上:
Failed to load resource: net::ERR_CERT_COMMON_NAME_INVALID
(index):1 Uncaught (in promise) TypeError: Failed to fetch
(index):1 Access to fetch at 'https://codesandbox.io/api/v1/sandboxes/wm1dl/cache' from origin
'https://wm1dl.codesandbox.io' has been blocked by CORS policy: Response to preflight request
doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the
requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors'
to fetch the resource with CORS disabled.
codesandbox.io/api/v1/sandboxes/wm1dl/cache:1 Failed to load resource: net::ERR_FAILED
我尝试检查我的网络和其他内容,但是我不知道如何规范化它。
我需要对此进行规范化,或者至少能够确保可以安全地将文件复制/提交到github,然后在IDE上使用它。
这是我的沙盒
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句