无法从包中导入模块
Unable to import module from package
我最近安装了 Elm 的 List.Extra 包。
我正在尝试使用以下内容从包中导入 List.Extra 模块:
module Tests.TestAPI exposing (..)
import List.Extra as ListHelper exposing (..)
但是,我收到以下错误:
- I cannot find module 'List.Extra'.
Module 'Tests.TestAPI' is trying to import it.
Potential problems could be: * Misspelled the module name * Need
to add a source directory or new dependency to elm-package.json
List.Extra 模块如下所示:
module List.Extra
exposing
( last,
...
)
关于我需要做什么才能成功导入此模块有什么建议吗?
我通过重新启动 IDE(Visual Studio 代码)
解决了这个问题
我最近安装了 Elm 的 List.Extra 包。
我正在尝试使用以下内容从包中导入 List.Extra 模块:
module Tests.TestAPI exposing (..)
import List.Extra as ListHelper exposing (..)
但是,我收到以下错误:
- I cannot find module 'List.Extra'.
Module 'Tests.TestAPI' is trying to import it.
Potential problems could be: * Misspelled the module name * Need to add a source directory or new dependency to elm-package.json
List.Extra 模块如下所示:
module List.Extra
exposing
( last,
...
)
关于我需要做什么才能成功导入此模块有什么建议吗?
我通过重新启动 IDE(Visual Studio 代码)
解决了这个问题