react-on-rails

'Yarn install' cause 'trouble with network connection'

扶醉桌前 提交于 2020-06-14 04:11:01
问题 yarn install v0.21.3 [1/4] Resolving packages... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... error An unexpected error occurred: "https://github.com

'Yarn install' cause 'trouble with network connection'

前提是你 提交于 2020-06-14 04:10:49
问题 yarn install v0.21.3 [1/4] Resolving packages... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... error An unexpected error occurred: "https://github.com

'Yarn install' cause 'trouble with network connection'

点点圈 提交于 2020-06-14 04:10:47
问题 yarn install v0.21.3 [1/4] Resolving packages... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... warning There appears to be trouble with your network connection. Retrying... error An unexpected error occurred: "https://github.com

window is not defined in server side render window.webpackJsonp

大城市里の小女人 提交于 2019-12-24 06:47:50
问题 I'm attempting to upgrade a Rails/Webpacker/ReactOnRails application to webpack 4. I have included a call to environment.splitChunks . That is placing this code: window.webpackJsonp=window.webpackJsonp||[]).push([[11],....... in my bundle. Since this is my server side bundle, window does not exist. Is there a way to completely exclude this bundle from having webpackJsonp added? I have tried these two configurations: environment.splitChunks(); and environment.splitChunks(config => Object

Importing a react component from a Rails engine into an application

不羁岁月 提交于 2019-12-10 23:11:58
问题 I am using react_on_rails for developing a Rails Engine and an application. I have written a rails engine which has a single component - NewComponent . It uses react_on_rails. This has been tested via the dummy application of the rails engine. I imported and registered the component in dummy application: /new_engine/test/dummy/client/app/Index.jsx : import NewComponent from '../../../../client/app/pages/user_home_page/NewComponent'; ReactOnRails.register({ NewComponent, }); The above worked

node Issue in Creating demo project using react_on_rails gem

一曲冷凌霜 提交于 2019-12-02 17:11:16
问题 I am trying to follow this tutorial to create a dummy project using gem react_on_rails I guess I have followed every step of the tutorial but on the last step where we have to run the project a node js related error is popping up. I even updated my node version on the system, still facing the same issue Error foreman start -f Procfile.dev 22:30:58 web.1 | started with pid 5370 22:30:58 client.1 | started with pid 5371 22:30:59 client.1 | (in /home/projects/test-react-on-rails) 22:31:00 web.1

node Issue in Creating demo project using react_on_rails gem

风流意气都作罢 提交于 2019-12-02 07:38:11
I am trying to follow this tutorial to create a dummy project using gem react_on_rails I guess I have followed every step of the tutorial but on the last step where we have to run the project a node js related error is popping up. I even updated my node version on the system, still facing the same issue Error foreman start -f Procfile.dev 22:30:58 web.1 | started with pid 5370 22:30:58 client.1 | started with pid 5371 22:30:59 client.1 | (in /home/projects/test-react-on-rails) 22:31:00 web.1 | => Booting Puma 22:31:00 web.1 | => Rails 5.1.2 application starting in development on http:/