You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varar pkg = new Package(path.resolve('path/to/module'));
暂时解决。
2. 之后是index.js报错
throw er; // Unhandled 'error' event
^
TypeError: Cannot read property 'pkg' of null
at getFiles (f:\workspace\Wiz\wizshare\node_modules\gulp-spm\lib\plugin\include.js:55:17)
at DestroyableTransform._transform (f:\workspace\Wiz\wizshare\node_modules\gulp-spm\lib\plugin\include.js:29:15)
at DestroyableTransform.Transform._read (f:\workspace\Wiz\wizshare\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (f:\workspace\Wiz\wizshare\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:12)
at doWrite (f:\workspace\Wiz\wizshare\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:237:10)
at writeOrBuffer (f:\workspace\Wiz\wizshare\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:227:5)
at DestroyableTransform.Writable.write (f:\workspace\Wiz\wizshare\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:194:11)
at DuplexWrapper._write (f:\workspace\Wiz\wizshare\node_modules\gulp-spm\node_modules\duplexer2\index.js:57:18)
at doWrite (f:\workspace\Wiz\wizshare\node_modules\gulp-spm\node_modules\duplexer2\node_modules\readable-stream\lib\_stream_writable.js:279:12)
at writeOrBuffer (f:\workspace\Wiz\wizshare\node_modules\gulp-spm\node_modules\duplexer2\node_modules\readable-stream\lib\_stream_writable.js:266:5)
The text was updated successfully, but these errors were encountered:
1.开始是'cannote find module'的错误提示,查看了下代码,我用
暂时解决。
2. 之后是index.js报错
The text was updated successfully, but these errors were encountered: