-
-
Notifications
You must be signed in to change notification settings - Fork 845
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
vue3 +ts的项目使用时候 npm i 之后 引用报这个错 #391
Comments
我也是vue3+ts项目,卸载4版本,安装3.1.0版本后可以正常运行 |
还是用2.11.2版本吧,3.1.0打包的时候报错,低一点稳定些 |
This works for me |
+1 |
在3.1.0版本中,segmentit这个依赖是放在optionalDependencies中的,如果node版本低,或者安装的时候指定了不安装optional依赖 |
直接安装一下segmentit这个库在重启一下项目就可以了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
main.ts:64 [Vue Router warn]: Unexpected error when starting the router: Error: Could not resolve "segmentit" imported by "pinyin". Is it installed?
at pinyin.js?v=0fbf07e6:82399:7
The text was updated successfully, but these errors were encountered: