FAQ
\SyntaxError:在位置 0 处的 JSON 中出现意外的标记 e,同时在 'export default "{\n 附近进行解析
解决方法:
module.exports = {
module: {
loaders: [
{
test: /\.json$/,
use: ["json-loader"],
type: "javascript/auto",
},
],
},
};
解决方法:
module.exports = {
module: {
loaders: [
{
test: /\.json$/,
use: ["json-loader"],
type: "javascript/auto",
},
],
},
};