エラー内容
Uncaught TypeError: o is not a function at Object.<anonymous> (index.js:1217) at Object.<anonymous> (index.js:1667) at n (index.js:57) at Object.<anonymous> (index.js:1097) at n (index.js:57) at Object.<anonymous> (index.js:816) at n (index.js:57) at Object.<anonymous> (index.js:690) at n (index.js:57) at index.js:178 (anonymous) @ index.js:1217 (anonymous) @ index.js:1667 n @ index.js:57 (anonymous) @ index.js:1097 n @ index.js:57 (anonymous) @ index.js:816 n @ index.js:57 (anonymous) @ index.js:690 n @ index.js:57 (anonymous) @ index.js:178 (anonymous) @ index.js:5 n @ bootstrap:19 (anonymous) @ index.js:1 n @ bootstrap:19 (anonymous) @ Heading.js.jsx:37 n @ bootstrap:19 (anonymous) @ bootstrap:83 (anonymous) @ bootstrap:83
Uncaught Error: ReactOnRails encountered an error while rendering component: BlogApp. Original message: Could not find component registered with name BlogApp. Registered component names include [ ]. Maybe you forgot to register the component? at Object.get (ComponentRegistry.js:58) at Object.getComponent (ReactOnRails.js:196) at m (clientStartup.js:135) at clientStartup.js:59 at f (clientStartup.js:72) at v (clientStartup.js:180) at HTMLDocument.b (clientStartup.js:213)
環境
ruby 2.5.1 rails 5.2.3 react-on-rails 11.3.0 capistrano 3.11.0
デプロイ自体は成功しており、railsで全て書いたadminページにはうまく接続できましたが、react-on-railsを利用して書いたページには上記のエラーで接続できませんでした。
解決方法を調べてみたのですが、見つからず、なにを試せばいいかもうわかりません...
あなたの回答
tips
プレビュー