我在打字稿文件中有这段代码
function debug_show_removed_flights() {
if ($('.debug-window #show_removed_flights')[0].checked) {
$('.fly-schedule-removed_reason').show();
return $('.fly-schedule-remove').show();
} else {
$('.fly-schedule-removed_reason').hide();
return $('.fly-schedule-remove').hide();
}
};
Run Code Online (Sandbox Code Playgroud)
但是在这一行中,我有错误。
if ($('.debug-window #show_removed_flights')[0].checked) {
Run Code Online (Sandbox Code Playgroud)
[ts]属性'checked'在类型'HTMLElement'上不存在。
我该如何解决?
我已经下载了Honeybadger Webpack示例并运行bundle install。
我在终端中没有任何错误,但是在启动服务器时得到以下信息:
Webpacker can't find application.js in /Users/admin/Documents/sourcemap/honeybadger-rails-webpacker-example/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
unless you are using the `webpack -w` or the webpack-dev-server.
2. Webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your Webpack configuration is not creating a manifest.
Your manifest contains:
{
}
Run Code Online (Sandbox Code Playgroud)
适用于线 <%= javascript_pack_tag 'application' %>
我的问题在哪里?