Comments (9)
The gemspec includes:
s.add_dependency "execjs", "~> 2.5"
So the gem depends on execjs, not therubyracer.
So yes, it's really not good to put in the gemfile.
We should add it as commented out and mention that you should set this if you plan to do server rendering.
Good catch.
We should have a file in the /docs directory on server rendering topics, BTW.
from react_on_rails.
@robwise Can we close this issue? I see this as a doc only issue.
from react_on_rails.
@justin808 It's up to you, I think I created this one a while back at your request. Right now the docs still say to manually include the therubyracer
gem along with the react_on_rails
gem in the Gemfile, and I'm still have the generator results script do that as well. If we want to remove that step, we should probably do some thorough testing and try to understand why it was put there in the first place.
from react_on_rails.
I'd say check react-rails.
We have a peer dependency of execjs already in the gem.
I'm almost 100% sure that we should not be putting in the therubyracer for non pre-render generators (and doc'd as such).
from react_on_rails.
@justin808 roger that, I will look into it and take it out if possible
from react_on_rails.
@justin808 while we're talking gem dependencies, we really should have foreman in there instead of just assuming people are going to have it.
from react_on_rails.
Probably. Maybe a non-production dependency. There's differing thoughts on including foreman in the gemfile.
from react_on_rails.
@robwise can we close this one?
from react_on_rails.
Yes, fixed in c21012a from PR #108
from react_on_rails.
Related Issues (20)
- `react_component` and `react_component_hash` raises pack not found warning even when corresponding chunks are present in `manifest`
- Refactor `lib/react_on_rails/helper.rb` HOT 1
- ./bin/dev is not executable in default HOT 1
- How to create Procfile.dev? HOT 2
- bin/dev: Please ensure `Procfile.dev` exist in your project! HOT 3
- How do I stop react_on_rails from generating packs? HOT 12
- How to disable sourcemap? HOT 1
- Update documentation based on Shakapacker 7 HOT 1
- Outdated link in the documentation redirects to Non-Found Page HOT 1
- Client rendering crashes when configuring `optimization.runtimeChunk` to `multiple` HOT 3
- Include Ruby 3 and node 18 to CI workflows HOT 2
- Pack generation runs with nil components_subdirectory HOT 3
- Concurrency performance HOT 3
- When server-bundle.js register a lot of server render components making the server render performance reduce big HOT 2
- Remove `request_digest` from `render_options` for version 14 HOT 1
- Convert spec/dummy/client to Typescript
- Change primary branch name from `master` to `main` HOT 2
- Add support for Vite
- Fix CI failure
- Server side rendering window behaves differently than Node.js? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react_on_rails.