Skip to content
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

[BUG] The requested module '/node_modules/.vite/deps/better-mock.js?v=3168b48e' does not provide an export named 'Random' #100

Open
VioletCoding opened this issue Jun 10, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@VioletCoding
Copy link

问题简述
使用Random方法报错

复现步骤
看图吧

期望结果
使用Random不报错

截图
依赖:
image
mock配置:
image
引入:
image
调用:
image
报错:
image
不用Random就可以:
image
image

环境
请描述一下你的代码运行环境。

  • Env: 浏览器,Edge 114.0.1823.41
  • OS: MacOs
  • better-mock version: 0.3.6
@VioletCoding VioletCoding added the bug Something isn't working label Jun 10, 2023
@lavyun
Copy link
Owner

lavyun commented Jun 14, 2023

试试
const { Random } = Mock; 呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants