eleme / morjs

基于小程序 DSL(微信、支付宝)的,可扩展的多端研发框架,支持一键将微信或支付宝小程序转换为微信、支付宝、百度、字节、QQ、快手、淘宝、钉钉等小程序 或 Web 应用。
https://mor.ele.me/
MIT License
1.74k stars 113 forks source link

After initializing the project, running dev throws an error. #134

Open yanpengxiang opened 11 months ago

yanpengxiang commented 11 months ago

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

[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
yanpengxiang commented 11 months ago

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

lihe6666 commented 10 months ago

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