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

: "MITO" is not exported by "node_modules/.pnpm/@zyf2e+monitor-web@2.1.56/node_modules/@zyf2e/monitor-web/dist/web.esm.js" #74

Open
winner800 opened this issue Jul 15, 2024 · 0 comments

Comments

@winner800
Copy link

winner800 commented Jul 15, 2024

Describe the bug
我在vue3项目中,通过pnpm i @zyf2e/monitor-web安装的,如下引用:
在main.ts中 import { MITO } from "@zyf2e/monitor-web"
报TS错误:找不到模块“@zyf2e/monitor-web”或其相应的类型声明。ts(2307)

在vite构建时报错:
MITO" is not exported by "node_modules/.pnpm/@zyf2e+monitor-web@2.1.56/node_modules/@zyf2e/monitor-web/dist/web.esm.js

Expected behavior
希望能正常解析

Information
"@zyf2e/monitor-web": "^2.1.56",

  • Mitojs Version [e.g. ^2.1.56]
  • Environment: [Vue3.0]
  • Error info stack [e.g. "MITO" is not exported by "node_modules/.pnpm/@zyf2e+monitor-web@2.1.56/node_modules/@zyf2e/monitor-web/dist/web.esm.js"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant