问答详情
源自:4-6 处理模板文件

总是报错 没有合适的loader 可是我明明都已经安装了 test也匹配了

ERROR in ./src/components/layer/layer.html 1:0

Module parse failed: Unexpected token (1:0)

You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

> <div class="layer">

|     <div>layer图层</div>

| </div>

 @ ./src/components/layer/layer.js 3:0-30 7:12-15

 @ ./src/app.js


提问者:NoError2018 2020-07-05 16:38

个回答

  • 慕丝0471157
    2021-06-24 20:56:40

    这视频版本太旧了,语法有很多错误