添加本机js lib后runElmProgram不是函数

runElmProgram is not a function after adding a native js lib

我正在尝试将 https://github.com/TheSeamau5/elm-storage/ 与 elm 0.18

一起使用

尝试 运行 elm-reactor 时,出现此错误:

但是当我尝试 运行 时:elm make src/Exercises.elm --warn --output elm.js

然后我没有收到任何警告,但出现以下错误:

这是我的榆树包:

{
    "version": "1.0.0",
    "summary": "helpful summary of your project, less than 80 characters",
    "repository": "https://github.com/user/project.git",
    "license": "BSD3",
    "source-directories": [".", "src"],
    "exposed-modules": [],
    "native-modules": true,
    "dependencies": {
        "elm-lang/core": "5.1.1 <= v < 6.0.0",
        "elm-lang/html": "2.0.0 <= v < 3.0.0",
        "elm-lang/dom": "1.1.1 <= v < 2.0.0",
        "NoRedInk/elm-simple-fuzzy": "1.0.2 <= v < 2.0.0"
    },
    "elm-version": "0.18.0 <= v < 0.19.0"
}

你很幸运,因为这是一个旧图书馆。 Elm 代码本身看起来似乎使用自编写以来未更改的语法,但它所依赖的本机代码已完全更改,这就是导致错误的原因。

您可以尝试改用 https://github.com/elm-lang/persistent-cache,但这似乎是一个故意保留原样的包,您应该改用端口。我知道很沮丧....