小编lle*_*ekn的帖子

无法在 macos-10.15.6 上捆绑安装 puma 4.3.5 或 gem puma 与 ruby​​-2.6.6

无法在 macos-10.15.6 上使用 ruby​​-2.6.6 捆绑安装 puma 4.3.5 或 gem puma 尝试捆绑我的项目的依赖项,但 puma 4.3.5 出现错误。有人知道这个吗?

xxxxxxxxxxxx

这是错误内容:

fetching puma 4.3.5
Installing puma 4.3.5 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /Users/lxj/.rvm/gems/ruby-2.6.6/gems/puma-4.3.5/ext/puma_http11
/Users/lxj/.rvm/rubies/ruby-2.6.6/bin/ruby -I /Users/lxj/.rvm/rubies/ruby-2.6.6/lib/ruby/site_ruby/2.6.0 -r ./siteconf20200731-28585-1eobsvu.rb extconf.rb
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
checking for openssl/bio.h... yes
checking for DTLS_method() in openssl/ssl.h... yes
checking for TLS_server_method() in openssl/ssl.h... yes
checking for SSL_CTX_set_min_proto_version in openssl/ssl.h... yes
creating Makefile

current directory: …
Run Code Online (Sandbox Code Playgroud)

ruby macos rubygems bundler

40
推荐指数
1
解决办法
8215
查看次数

如何在Reactive Form上使用ng-bootstrap Typeahead组件

我正在尝试ng-bootstrap在带有Angular 2的Reactive Form上使用Typeahead组件,在查看Typeahead文档中的示例代码后,我无法使其工作.

目前,我有类似的东西:

<input type="text" aria-describedby="cityValid" class="form-control" id="inputCity" [formControl]="userForm.controls.city" [ngbTypeahead]="search">
Run Code Online (Sandbox Code Playgroud)

使用search与示例代码几乎相同的函数,但它使用以下堆栈跟踪失败

error_handler.js:53 TypeError: Cannot read property 'subscribe' of undefined
at NgbTypeahead._subscribeToUserInput (typeahead.js:158)
at NgbTypeahead.ngOnInit (typeahead.js:52)
at DebugAppView._View_UserFormComponent0.detectChangesInternal (UserFormComponent.ngfactory.js:1093)
at DebugAppView.AppView.detectChanges (view.js:271)
at DebugAppView.detectChanges (view.js:376)
at DebugAppView.AppView.detectViewChildrenChanges (view.js:297)
at DebugAppView._View_ExecutionFormComponent3.detectChangesInternal (ExecutionFormComponent.ngfactory.js:551)
at DebugAppView.AppView.detectChanges (view.js:271)
at DebugAppView.detectChanges (view.js:376)
at DebugAppView.AppView.detectContentChildrenChanges (view.js:289)
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?如果有一个关于如何在Reactive Forms上使用ng-bootstrap组件的一般指南会很棒,因为该示例基于基于模板的示例.

谢谢!

twitter-bootstrap-4 ng-bootstrap angular

4
推荐指数
1
解决办法
7399
查看次数