如何在JSON

时间:2016-07-15 19:48:57

标签: json webpack

我有以下代码......

[
    {
        "number": 0,
        "color":  "blue",
        "content": require('./first-card.pug')
    }
    ...
]

当我尝试运行Webpack时,我看到......

ERROR in ./src/app/jg/cards/cards.json
Module build failed: SyntaxError: Unexpected token r
    at Object.parse (native)

我需要逃跑吗?

0 个答案:

没有答案