morjs icon indicating copy to clipboard operation
morjs copied to clipboard

Cannot read properties of undefined (reading 'ALIPAY')

Open saberfr opened this issue 1 year ago • 2 comments

1、processNodeModules设为true

import { defineConfig } from '@morjs/cli'

export default defineConfig([
  {
    name: 'web',
    sourceType: 'wechat',
    target: 'web',
    compileType: 'miniprogram',
    processNodeModules: true,
    compileMode: 'bundle',
    cache: false
  }
])

2、执行npm run dev:web,编译没问题,打开页面报: Cannot read properties of undefined (reading 'ALIPAY') image 3、关闭processNodeModules则恢复正常

saberfr avatar Sep 08 '23 05:09 saberfr