草庐IT

ANNOTATION_TYPE

全部标签

【异常】解决 Cannot find module ‘./element-ui‘ or its corresponding type declarations.

一、报错提示vue3+ts项目打包报Elementui内部的错ERRORinD:/Project/项目名称/node_modules/element-ui/types/index.d.ts(1,15):1:15Cannotfindmodule'./element-ui'oritscorrespondingtypedeclarations.>1|export*from'./element-ui'|^2|3|import*asElementUIfrom'./element-ui'4|exportdefaultElementUIERRORinD:/Project/项目名称/node_modules/

xcode - Swift 中的 "Use of undeclared type",即使类型是内部的,并且存在于同一模块中

我的模块中有一个类型:importCocoaclassColoredDotView:NSView{...}它被用在许多不同的类中,没有问题:classEditSubjectPopoverController:NSObject{@IBOutletinternalvarsubjectColorDotView:ColoredDotView!...}但由于某些原因,当我在一个特定类中使用它时,我在类型上出现编译错误:classEditTaskPopoverController:NSObject{@IBOutletinternalvarlowPriorityDotView:ColoredDotV

xcode - Swift 中的 "Use of undeclared type",即使类型是内部的,并且存在于同一模块中

我的模块中有一个类型:importCocoaclassColoredDotView:NSView{...}它被用在许多不同的类中,没有问题:classEditSubjectPopoverController:NSObject{@IBOutletinternalvarsubjectColorDotView:ColoredDotView!...}但由于某些原因,当我在一个特定类中使用它时,我在类型上出现编译错误:classEditTaskPopoverController:NSObject{@IBOutletinternalvarlowPriorityDotView:ColoredDotV

ios - libc++abi.dylib : terminating with uncaught exception of type NSException (lldb)

想要改进此帖子?提供此问题的详细答案,包括引用和对答案正确原因的解释。不够详细的答案可能会被编辑或删除。我正在快速编写一个应用程序,当我在iPhone模拟器上运行测试应用程序时,一切正常,但随后我尝试向右滑动,这是我为它添加到下一页的手势(查看Controller二)它崩溃并在控制台日志中显示此错误报告。2014-10-1812:07:34.400soundtest[17081:818922]***Terminatingappduetouncaughtexception'NSUnknownKeyException',reason:'[setValue:forUndefinedKey:]

ios - libc++abi.dylib : terminating with uncaught exception of type NSException (lldb)

想要改进此帖子?提供此问题的详细答案,包括引用和对答案正确原因的解释。不够详细的答案可能会被编辑或删除。我正在快速编写一个应用程序,当我在iPhone模拟器上运行测试应用程序时,一切正常,但随后我尝试向右滑动,这是我为它添加到下一页的手势(查看Controller二)它崩溃并在控制台日志中显示此错误报告。2014-10-1812:07:34.400soundtest[17081:818922]***Terminatingappduetouncaughtexception'NSUnknownKeyException',reason:'[setValue:forUndefinedKey:]

ios - Xcode 8/swift 3 : "Expression of type UIViewController? is unused" warning

我有以下函数,它之前编译得很干净,但在Xcode8中生成了警告。funcexitViewController(){navigationController?.popViewController(animated:true)}"Expressionoftype"UIViewController?"isunused".为什么会这样说,有没有办法删除它?代码按预期执行。 最佳答案 长话短说popViewController(animated:)返回UIViewController?,并且编译器发出警告,因为您没有捕获该值。解决方案是将其分

ios - Xcode 8/swift 3 : "Expression of type UIViewController? is unused" warning

我有以下函数,它之前编译得很干净,但在Xcode8中生成了警告。funcexitViewController(){navigationController?.popViewController(animated:true)}"Expressionoftype"UIViewController?"isunused".为什么会这样说,有没有办法删除它?代码按预期执行。 最佳答案 长话短说popViewController(animated:)返回UIViewController?,并且编译器发出警告,因为您没有捕获该值。解决方案是将其分

no matching host key type found. Their offer: ssh-rsa 问题解决

最近升级了MacOSVentura13.0.1后发现ssh指定密钥登录服务器失败。nomatchinghostkeytypefound.Theiroffer:ssh-rsa进入当前用户的.ssh目录发现比之前系统多了一个config文件查看sshd版本,发现升级了,需要指定算法参数解决办法:方法1.ssh命令指定算法,每次指定比较麻烦ssh-oHostKeyAlgorithms=+ssh-rsa-oPubkeyAcceptedKeyTypes=+ssh-rsauser@host-p2222方法2. 修改ssh配置文件 ~/.ssh/config,增加配置项,一劳永逸HostKeyAlgorit

no matching host key type found. Their offer: ssh-rsa 问题解决

最近升级了MacOSVentura13.0.1后发现ssh指定密钥登录服务器失败。nomatchinghostkeytypefound.Theiroffer:ssh-rsa进入当前用户的.ssh目录发现比之前系统多了一个config文件查看sshd版本,发现升级了,需要指定算法参数解决办法:方法1.ssh命令指定算法,每次指定比较麻烦ssh-oHostKeyAlgorithms=+ssh-rsa-oPubkeyAcceptedKeyTypes=+ssh-rsauser@host-p2222方法2. 修改ssh配置文件 ~/.ssh/config,增加配置项,一劳永逸HostKeyAlgorit

Type c口和Micro USB作为电源接口,原理图设计

1、TypeC接口目前适用于各种充电器接头,应用十分广泛,在设计一些PCB板时,对于板载供电,可以考虑TYPEC接口方式。上图即为TYPEC接口原理图,其中设计关键点是要在CC1/CC2上任意选择一个,加入Rd5.1k电阻,将PCB板设置为SNK,以供外接充电器作为SRC,可以识别到该设备,建立CC连接后,才进行VBUS供电。具体原理可以参考TYPEC协议内容。即使使用一个100w的充电器,不用担心插入到接口位置供电电流电压过大,因为100w这么大功率充电器,包含PD协议,当SNK端不支持PD协议时,充电器不会输出大功率,会按照最低规格电压5v电压输出。2、MICROUSB供电方式MicroU