Comments (11)
@bbnnt Within those example directories did you run npm install
& npm start
?
from react-resolver.
A clarification on this one: I ran into it as well on a clean installation of the example folder.
It appears that the issue is simply that src/server.js
calls require(babel/register)
, while the package.json for the example installs babel-core
instead of babel
.
It will function nonetheless if you have already run npm install
in the root of the react-resolver project, because there babel
is installed and the require statement from the example will find it in that parent folder.
The fix to make the example work independently as designed is simply to require babel-core/register
instead of babel/register
in server.js, since that is the module it installs. This fix should avert the issue for others who run into this simple roadblock by running the example on its own.
from react-resolver.
sure did; won't say I'm expert in react and the ecosystem, but I've understood how webpack works, how to use package.json, etc… the basic architecture of those tools.
But never seen any examples using this piping thing, I was expecting to be lucky if this one sounded obvious for you
from react-resolver.
@bbnnt Sorry, I didn't mean to make it seem like you didn't know. Someone brought up the docs for the examples once before & I was hoping it was the same here.
Reason being, I just did a git clean -fdx. && npm start
within the example & had it running:
Although now I fear there's a regression with HistoryLocation
:(
from react-resolver.
No problem, I was just in hope to find out and understand things better hacking with your examples.
Damn it, being a "server-side-dev", I'm was looking for a clean way to get into isomorphism. so far I was pretty disapointed with what exists in the ecosystem; but have to say your tool is perfect (doing data call from within the components, I just don't understand why it is not a main concern in react and why isomorphism got so big without actually providing a solid pattern for calling data server-side before rendering)
Tried out your command, still got the same problem.
Could it come from my node version maybe ? Mine is v0.12.6.
I might figure it out anyway. Thanks a lot for your time!
from react-resolver.
That's really bizarre! Do you have babel installed globally? npm run
commands automatically path node_modules/.bin
from the local install, but globals still take precedent.
from react-resolver.
Too bad for the examples, but I gave it up; wasn't a big deal
In any cases I managed to use your project as intended ! #76 seems more important in any cases
from react-resolver.
Sorry it didn't work out. Truthfully, it sounds more like the npm install
messed up on your machine.
from react-resolver.
Ah, and you answered it here. Thanks :)
from react-resolver.
well not sure if it was updated or not, but it does now work !
thx
from react-resolver.
Yay, thanks @jasonphillips!
from react-resolver.
Related Issues (20)
- React.renderToStaticMarkup -> ReactDOMServer.renderToStaticMarkup HOT 2
- Can I use this without server rendering? HOT 3
- Add ability to cache resolved props HOT 9
- Using HOC breaks HMR
- Minimum universal react API HOT 1
- test
- Support variable? HOT 3
- Unhandled rejections server side HOT 1
- @context steals data from this.context HOT 6
- Allow factory to decide which props to re-use? HOT 5
- Documentation links are broken HOT 4
- Using same component on different routes HOT 3
- Using @client and @resolve on the same class causes @resolve to be called twice HOT 1
- Some way of manipulating data before passing it to component HOT 2
- Breakage with React 16: PropTypes no longer exported by React HOT 1
- "[email protected]" has incorrect peer dependency "react@^0.14.6 || ^15.0.0-0" HOT 5
- Need hydrate static method in the Resolver class for server side rendering HOT 2
- Fix compatibility with Babel 6
- Resolve multiple props with one callback HOT 5
- Initial Data from Django using React Resolver HOT 1
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-resolver.