我已经开发了库 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.
发布评论
评论(1)
(这里的四分之一开发)我最近修复了一个错误,该错误会导致您看到的行为。您可以尝试晚于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.