用包替换.elm文件的热模块不起作用

用包替换.elm文件的热模块不起作用,elm,parceljs,Elm,Parceljs,我使用parcel设置了第一个elm项目,用于自动重建和hmr,但是,当我编辑.elm文件时,hmr不起作用。如果我在html或js端更改任何内容,它都可以工作。有什么提示吗 刚刚 npm install -g parcel-bundler parcel index.html 根据本指南- package.json { "devDependencies": { "elm-hot": "^1.0.1", "node-elm-compiler": "^5.0.3" },

我使用parcel设置了第一个elm项目,用于自动重建和hmr,但是,当我编辑.elm文件时,hmr不起作用。如果我在html或js端更改任何内容,它都可以工作。有什么提示吗

刚刚

npm install -g parcel-bundler
parcel index.html
根据本指南-

package.json

{
  "devDependencies": {
    "elm-hot": "^1.0.1",
    "node-elm-compiler": "^5.0.3"
  },
  "dependencies": {}
}
index.html

<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Photo Groove</title>
    <link rel="stylesheet" href="http://elm-in-action.com/styles.css">
</head>

<body>
    <div id="app"></div>
    <script src="src/index.js"></script>
</body>

</html>

如何编辑Elm文件?退房与包裹HMR一起工作。
import { Elm } from './PhotoGroove.elm';

Elm.PhotoGroove.init({
    node: document.getElementById('app')
});