Keystone+React: 'import' and 'export' may appear only with 'sourceType: module'
问题 After updating the project dependencies I started facing the error. Browserify has problem parsing my JS code, which is written in ES6. Browserify seems to expect ES5. I don't understand, why the sourceType: module seems to be the issue here. Source: var babelify = require('babelify'); var browserify = require('browserify-middleware'); var keystone = require('keystone'); var importRoutes = keystone.importer(__dirname); // Setup Route Bindings exports = module.exports = function(app) { app.use