レール4.2.0のアプリケーションを5.1.2にアップグレードしています。私はAngular 1.xを使って自分のレールアプリケーションページを選択的に強化していました。私のレールビューはHAMLにあります。ここでは5.1.2ではない4.2.0で正常にロードしたページの抜粋ですが、:レールへのアップグレード5.1.2レールから4.20ブレーク角の組み込み
.well{"ng-app" => "billing", "ng-controller" => "BillableCtrl"}
= simple_form_for @billable do |f|
.row
.col-md-4
これは、このビューの角度罰金をロードします。しかし、これをRails 5.1.2でロードしようとすると、javascriptコンソールに次のスタックトレースが表示されます。
Uncaught SyntaxError: Unexpected token & angular.self-26d045c60a96c782aa8ef9f5709b1b4fd1ec8578bc37ec2c6c2b9c4370f4bac0.js?body=1:64 Uncaught Error: [$injector:modulerr] Failed to instantiate module billing due to: Error: [$injector:nomod] Module 'billing' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
私は、レール5.1.2のアップグレードでngannotate-railsバージョン1.2.2を使用しています。レール4.2.0のバージョンで使用されているngannotate-railsのバージョンは0.15.4でした。
他に誰かがこの問題に遭遇しましたか?調査するオプションは何ですか?