zhangfisher / voerka-i18n

Nodejs/Vue/React International solutions

Home Page:https://zhangfisher.github.io/voerka-i18n/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uniapp voerkai18n init 报错解决

jhs1873 opened this issue · comments

根目录有package.json的前提,没有就npm ini 初始化一个

node:internal/errors:478
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null

解决办法:根目录新建目录src

这里是uniapp的例子

https://github.com/zhangfisher/voerka-i18n/tree/master/examples/uniapp-vue3

感谢,我用的是uniapp的vue2老项目 @zhangfisher