spmjs / spm-migrate

migrate 2.x to 3.x
2 stars 0 forks source link

spm.alias 属性不存在时报错 #1

Open afc163 opened 10 years ago

afc163 commented 10 years ago

🎯 word-color@1.0.0 git:❨master❩ spm-migrate

/usr/local/lib/node_modules/spm-migrate/index.js:90 } else if (alias[name]) { ^ TypeError: Cannot read property 'word-color' of undefined at /usr/local/lib/node_modules/spm-migrate/index.js:90:23 at /usr/local/lib/node_modules/spm-migrate/node_modules/requires/index.js:41:33 at Array.forEach (native) at map (/usr/local/lib/node_modules/spm-migrate/node_modules/requires/index.js:40:17) at requires (/usr/local/lib/node_modules/spm-migrate/node_modules/requires/index.js:18:18) at Transform._transform (/usr/local/lib/node_modules/spm-migrate/index.js:86:12) at Transform._read (/usr/local/lib/node_modules/spm-migrate/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10) at Transform._write (/usr/local/lib/node_modules/spm-migrate/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12) at doWrite (/usr/local/lib/node_modules/spm-migrate/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:238:10) at writeOrBuffer (/usr/local/lib/node_modules/spm-migrate/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:228:5)

afc163 commented 10 years ago

另外,没有对 devAlias 做处理。

popomore commented 10 years ago

发了个新版,试试

popomore commented 10 years ago

?

afc163 commented 10 years ago

仍然有问题。

popomore commented 10 years ago

哪个还有问题?— Sent from Mailbox for iPhone

On Sat, May 24, 2014 at 4:05 PM, 偏右 notifications@github.com wrote:

仍然有问题。

Reply to this email directly or view it on GitHub: https://github.com/spmjs/spm-migrate/issues/1#issuecomment-44080807

afc163 commented 10 years ago

package.json 里没有 spm.alias 属性时,哪个都有问题。

popomore commented 10 years ago

popomore Sent with Airmail

开启 2014年5月24日 at 下午7:21:09, 偏右 (notifications@github.com) 写:

package.json 里没有 spm.alias 属性时,哪个都有问题。

— Reply to this email directly or view it on GitHub.