我在我建立的React网站上收到警告
./src/components/layout/Navbar.js [1] Line 31: The href attribute requires a valid
address. Provide a valid, navigable address as the href value jsx-a11y/anchor-is-valid
Run Code Online (Sandbox Code Playgroud)
在以下代码上:
<p>
{isEmpty(profile.website) ? null : (
<a
className="text-white p-2"
href={profile.website}
target="#"
>
<i className="fas fa-globe fa-2x" />
</a>
)}
{isEmpty(profile.social && profile.social.twitter) ? null : (
<a
className="text-white p-2"
href={profile.social.twitter}
target="#"
>
<i className="fab fa-twitter fa-2x" />
</a>
)}
{isEmpty(profile.social && profile.social.facebook) ? null : (
<a
className="text-white p-2"
href={profile.social.facebook}
target="#"
>
<i className="fab fa-facebook fa-2x" /> …Run Code Online (Sandbox Code Playgroud) 我设置了一个使用 highcharter 的活页夹。该软件包已安装,系统可以找到它并且它是最新的。但是当尝试将它附加到库时我得到这个:
\n> library(highcharter)\nError: package or namespace load failed for \xe2\x80\x98highcharter\xe2\x80\x99 in dyn.load(file, DLLpath = DLLpath, ...):\n unable to load shared object \'/srv/rlibs/igraph/libs/igraph.so\':\n libglpk.so.40: cannot open shared object file: No such file or directory\nRun Code Online (Sandbox Code Playgroud)\n我注意到提到了 igraph,所以我尝试附加它,但得到相同的错误:
\n> library(igraph)\nError: package or namespace load failed for \xe2\x80\x98igraph\xe2\x80\x99 in dyn.load(file, DLLpath = DLLpath, ...):\n unable to load shared object \'/srv/rlibs/igraph/libs/igraph.so\':\n libglpk.so.40: cannot open shared object file: No such file or directory\nRun Code Online (Sandbox Code Playgroud)\n我尝试从 github 安装最新的开发版本。结果出现了一个错误:
\n** …Run Code Online (Sandbox Code Playgroud)