```DOS命令
D:\LenovoSoftstore\Install\Java\CompanyPro>simple-coder admin-module Model
Input pramas: [ 'Model' ]
moduleName: Model
target Name: all
config path---> D:\LenovoSoftstore\Install\Java\CompanyPro\.templates\config.js
current target root Path-----> D:\LenovoSoftstore\Install\Java\CompanyPro
create all
create module[ model ]...
C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\lib\code-tools.js:275
for (let i=0; i<fields.length; i++){
^
TypeError: Cannot read properties of null (reading 'length')
at Object.loadES6ModuleObject (C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\lib\code-tools.js:275:32)
at createModuleFiles (C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\lib\generators\admin-module-creator.js:167:32)
at module.exports (C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\lib\generators\admin-module-creator.js:275:22)
at Command.<anonymous> (C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\cli.js:92:85)
at Command.listener [as _actionHandler] (C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\node_modules\commander\lib\command.js:488:17)
at C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\node_modules\commander\lib\command.js:1227:65
at Command._chainOrCall (C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\node_modules\commander\lib\command.js:1144:12)
at Command._parseCommand (C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\node_modules\commander\lib\command.js:1227:27)
at Command._dispatchSubcommand (C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\node_modules\commander\lib\command.js:1050:25)
at Command._parseCommand (C:\Users\28929\AppData\Roaming\npm\node_modules\simple-coder\node_modules\commander\lib\command.js:1193:19)
Node.js v18.16.0
五,命令行快捷代码工具
1.Simple-coder创建项目:
1.安装此工具
npm install -g simple-coder
2.创建项目代码:
simple-coder create project-name
3 根据提示选择项目类型。比如java-service/web/mini小程序
1. Simple-coder创建模块:
1. 创建新增web-admin模块(根据提示选择不同类型的模块):
cd project-name
simple-coder admin-module module-name
创建模块的时候报错是啥原因哇