-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.2.3 ===> 引入@tarojs/plugin-mock插件编译错误 #6227
Comments
CC @luckyadam |
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
遗憾,发出的 @tarojs/plugin-mock 包有点问题,你把它升级到 0.0.4 试试 |
@luckyadam 升级到0.0.4之后可以使用了,但是每次保存重新编译都会重启服务 端口也会变化 |
@luckyadam 多次保存后就直接报错了 |
了解,看来还是插件写得有点问题,待我再更新一个版本 |
NervJS/taro-plugin-mock@8af10cd |
可以了 完美 大佬🐂🍺 |
OJBK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
Taro v2.2.3
引入@tarojs/plugin-mock时编译错误
复现步骤
期望行为
编译通过,可以使用数据mock
报错信息
(node:74996) UnhandledPromiseRejectionWarning: Error: Cannot find module './dist/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (/Users/oliver/Projects/template/taro-template/node_modules/@tarojs/plugin-mock/index.js:1:18)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Module._compile (/Users/oliver/.nvm/versions/node/v10.16.0/lib/node_modules/@tarojs/cli/node_modules/pirates/lib/index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Object.newLoader [as .js] (/Users/oliver/.nvm/versions/node/v10.16.0/lib/node_modules/@tarojs/cli/node_modules/pirates/lib/index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:653:32)
(node:74996) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:74996) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
系统信息
使用
taro info
也是同样的报错补充信息
The text was updated successfully, but these errors were encountered: