我正试图将JSON文件导入到单个Vue组件中,当我构建时,我收到了以下错误:
Module parse failed: Unexpected token } in JSON at position 1980 while parsing near '...647 25 49.981 25Z",
}
'
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
我正在使用Laravel Mix,并在node_modules/laravel-mix/setup/webpack.config.js
中看到一个webpack.config文件,但那里没有可配置的选项。
我认为json的末尾有一个多余的逗号,请删除它,然后重试。