答案 0 :(得分:0)
这是一个语法错误。我认为你要做的是[].forEach((ext) => require(...))
line 2
。您使用>
符号代替.
答案 1 :(得分:0)
尝试用这些 -
替换server.js行require('babel-core/register');
require('babel-polyfill');
['.css','.less','.sass','.ttf','.woff','.woff2'].forEach((ext) => require.extensions[ext] = () => {});
require('./src/server/keystone.js');
global.navigator = {navigator: 'all'};