尝试使用Svg和Svg.Attributes。获取错误消息
I cannot find module 'Svg'.
Module 'Main' is trying to import it.
Potential problems could be:
* Mispelled the module name
* Need to add a source directory or new dependency to elm-package.json我确信没有任何拼写错误,因为我复制并粘贴了从教程中导入的内容。我在哪里安装这个库?
我正在读的教程是elm-lang.org,特别是准时的部分。
发布于 2017-06-25 00:28:56
您需要将elm-lang/svg包作为elm-package.json中的依赖项。在项目目录中运行elm package install elm-lang/svg。
https://stackoverflow.com/questions/44741722
复制相似问题