小编msm*_*089的帖子

反应站点警告:href属性需要有效的地址。提供有效的可导航地址作为href值jsx-a11y / anchor-is-valid

我在我建立的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)

anchor jsx reactjs

7
推荐指数
12
解决办法
9142
查看次数

无法在 Rstudio 中附加 igraph 或 highcharter(libglpk.so.40:无法打开共享对象文件:没有这样的文件或目录)

我设置了一个使用 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\n
Run 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\n
Run Code Online (Sandbox Code Playgroud)\n

我尝试从 github 安装最新的开发版本。结果出现了一个错误:

\n
** …
Run Code Online (Sandbox Code Playgroud)

r igraph r-highcharter

3
推荐指数
1
解决办法
3524
查看次数

标签 统计

anchor ×1

igraph ×1

jsx ×1

r ×1

r-highcharter ×1

reactjs ×1