Giter Site home page Giter Site logo

Comments (11)

ericclemmons avatar ericclemmons commented on August 14, 2024 2

@bbnnt Within those example directories did you run npm install & npm start?

from react-resolver.

jasonphillips avatar jasonphillips commented on August 14, 2024 2

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.

benbonnet avatar benbonnet commented on August 14, 2024

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.

ericclemmons avatar ericclemmons commented on August 14, 2024

@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:

example

Although now I fear there's a regression with HistoryLocation :(

from react-resolver.

benbonnet avatar benbonnet commented on August 14, 2024

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.

ericclemmons avatar ericclemmons commented on August 14, 2024

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.

benbonnet avatar benbonnet commented on August 14, 2024

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.

ericclemmons avatar ericclemmons commented on August 14, 2024

Sorry it didn't work out. Truthfully, it sounds more like the npm install messed up on your machine.

from react-resolver.

ericclemmons avatar ericclemmons commented on August 14, 2024

Ah, and you answered it here. Thanks :)

from react-resolver.

benbonnet avatar benbonnet commented on August 14, 2024

well not sure if it was updated or not, but it does now work !
thx

from react-resolver.

ericclemmons avatar ericclemmons commented on August 14, 2024

Yay, thanks @jasonphillips!

from react-resolver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.