我刚刚检查了我的类星体项目(v2)。
你首先要跑
npm install
在你的类星体目录中。
然后我把提到的文件放在
app\node_modules\quasar\dist\ssr-directives\index.js
内容如下:
const noopTransform = () => ({ props: [] })
module.exports = {
'close-popup': noopTransform,
'intersection': noopTransform,
'morph': require('./Morph.js'),
'mutation': noopTransform,
'ripple': noopTransform,
'scroll': noopTransform,
'scroll-fire': noopTransform,
'touch-hold': noopTransform,
'touch-pan': noopTransform,
'touch-repeat': noopTransform,
'touch-swipe': noopTransform
}