错误四分之一需要无效的模块(bertin.js)

发布于 2025-01-30 10:16:48 字数 542 浏览 3 评论 0 原文

我已经开发了库 bertinjs 允许制作SVG相互作用的地图。在 Quarto ,require(bertin')不起作用。返回以下错误:OJS错误。需求$ 1:无效的模块。请参阅Github上的问题(请参见)。很奇怪。欢迎任何帮助。

I have developed the library bertinjs which allows to make svg interative maps. In Observable, require("bertin") works. In Quarto, require("bertin") does not work. The following error is returned: OJS Error. RequireError$1: invalid module. See the issue on Github (see). It's weird. Any help is welcome.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

日暮斜阳 2025-02-06 10:16:49

(这里的四分之一开发)我最近修复了一个错误,该错误会导致您看到的行为。您可以尝试晚于0.9.430的发布吗?谢谢!

编辑:我现在看到 bertinjs 使用现代JS语法,rstudio IDE的稳定版本尚不支持。您的示例可在最新的电子每日构建,链接页面上的正确列。

(Quarto dev here) I recently fixed a bug that would cause that behavior you're seeing. Can you try a release later than 0.9.430? Thanks!

Edit: I see now that bertinjs uses modern JS syntax, which the stable versions of the RStudio IDE don't yet support. Your example works on the latest Electron daily builds, the right-most column on the linked page.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文