eleme / morjs

基于小程序 DSL(微信、支付宝)的,可扩展的多端研发框架,支持一键将微信或支付宝小程序转换为微信、支付宝、百度、字节、QQ、快手、淘宝、钉钉等小程序 或 Web 应用。

Home Page:https://mor.ele.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After initializing the project, running dev throws an error.

yanpengxiang opened this issue · comments

When I initialize the project according to the examples on the official website, I get an error when running dev.

Steps to reproduce the behavior:

  1. pnpm create mor
  2. pnpm run dev

image

  • node version v16.16.0
  • pnpm version v8.3.1
[mor] ✖ Cannot read properties of undefined (reading 'entryName')
[mor] ✖ ⁃ anonymous
             node_modules\.pnpm\@morjs+plugin-compiler-web@1.0.0_@swc+core@1.2.192_esbuild@0.14.54_webpack@5.89.0\node_modules\@morjs\plugin-compiler-web\lib\plugins\generateJSXEntryPlugin.js:292
           ⁃ GenerateJSXEntryPlugin.generateEntryFiles
             node_modules\.pnpm\@morjs+plugin-compiler-web@1.0.0_@swc+core@1.2.192_esbuild@0.14.54_webpack@5.89.0\node_modules\@morjs\plugin-compiler-web\lib\plugins\generateJSXEntryPlugin.js:290
           ⁃ anonymous
             node_modules\.pnpm\@morjs+plugin-compiler-web@1.0.0_@swc+core@1.2.192_esbuild@0.14.54_webpack@5.89.0\node_modules\@morjs\plugin-compiler-web\lib\plugins\generateJSXEntryPlugin.js:142

This error occurs when I select the web option as Yes.

commented

我也遇到了这个问题, 怎么解?