新下载的 小程序开发工具1.05.2111300 64位版本,在win7 64上安装,新建了一个空白的标准小程序(框架),没有改任何代码,编译的时候报错,错误信息如下:
[] The "path" argument must be of type string. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at new NodeError (node:internal/errors:258:15)
at validateString (node:internal/validators:123:11)
at Object.resolve (node:path:139:9)
at Object. (D:\Tencent\微信web开发者工具\code\package.nw\node_modules.wxvpkg\get-proxy\node_modules\npm-conf\lib\defaults.js:1:619)
at Module._compile (node:internal/modules/cjs/loader:1107:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1142:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:88:18)
at Object. (D:\Tencent\微信web开发者工具\code\package.nw\node_modules.wxvpkg\get-proxy\node_modules\npm-conf\index.js:1:77)
at Module._compile (node:internal/modules/cjs/loader:1107:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1142:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:88:18)
at Object. (D:\Tencent\微信web开发者工具\code\package.nw\node_modules.wxvpkg\get-proxy\index.js:1:28)
at Module._compile (node:internal/modules/cjs/loader:1107:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1142:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:88:18)
at Object. (D:\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\utils\request.js:1:334)
at Module._compile (node:internal/modules/cjs/loader:1107:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1142:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:88:18)
at Object. (D:\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\ci\projectattr.js:1:140)
at Module._compile (node:internal/modules/cjs/loader:1107:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1142:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:88:18)
at Object. (D:\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\ci\project.js:1:289)
at Module._compile (node:internal/modules/cjs/loader:1107:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1142:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)
at Module.require (node:internal/modules/cjs/loader:996:19)
at require (node:internal/modules/cjs/helpers:88:18)
at Object. (D:\Tencent\微信web开发者工具\code\package.nw\js\common\compiler\index.js:1:350)
at Module._compile (node:internal/modules/cjs/loader:1107:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1142:10)
at Module.load (node:internal/modules/cjs/loader:972:32)
at Function.Module._load (node:internal/modules/cjs/loader:813:14)(env: Windows,mp,1.05.2111300; lib: 2.21.0)
会是什么原因造成的?
如果退出一次项目,再进入,再编译,又会报新的错误,信息如下:
Uncaught ReferenceError: __wxConfig is not defined
at instanceframe?s=1639016444410&autoload:1(env: Windows,mp,1.05.2111300; lib: 2.21.0)
还是不能正常编译这个基础项目(框架)
注销重新登录一下小程序
我也遇到了,升级版本之后运行不了了