Code Monkey home page Code Monkey logo

Comments (10)

taion avatar taion commented on July 18, 2024

Hey – I didn't have a chance to look at this yet. Did you resolve the problem?

from relay-todomvc.

bahador avatar bahador commented on July 18, 2024

Kind of.

My "solution" was to just admit defeat and use the package-lock.json file you committed, and just to be vigilant about committing it in the future. I'd prefer if the builds were possible with a fresh install without a lock file.

I prefer not to commit package-lock.json but this isn't necessarily right, although I do believe it's suggested that you do commit it. I've just had problems in the past working across teams with people adding packages and not committing the lock file, and then things start going wrong.

If there is a solution to this problem, I'd appreciate it. If not, I can live with using the lock file.

TIA

from relay-todomvc.

bahador avatar bahador commented on July 18, 2024

I did find that this was the last commit to work without using the lock file: 6b062cd

from relay-todomvc.

taion avatar taion commented on July 18, 2024

Well, there's clearly some sort of bug here that I'll track down, and I'll leave this issue open until I do.

Note that you are supposed to commit the lockfile, though: https://docs.npmjs.com/files/package-lock.json.

from relay-todomvc.

bahador avatar bahador commented on July 18, 2024

thanks

from relay-todomvc.

bahador avatar bahador commented on July 18, 2024

Thank you very much @taion. I'm going to take a look at this in the morning. I very much appreciate your time.

edit: Confirmed. Fixed. TYVM.

from relay-todomvc.

bahador avatar bahador commented on July 18, 2024

After checking out your new changes above, which work great, I get the same errors if I upgrade to relay 1.6. I read the changes and looked at the commits, but I still can't figure out why.

https://github.com/facebook/relay/releases/tag/v1.6.0

...
-    "react-relay": "~1.5.0",
-    "relay-compiler": "~1.5.0",
-    "relay-runtime": "~1.5.0",
+    "react-relay": "~1.6.0",
+    "relay-compiler": "~1.6.0",
+    "relay-runtime": "~1.6.0",
...

Any idea?

BTW thank you for your time!

from relay-todomvc.

taion avatar taion commented on July 18, 2024

The Relay 1.6 issues are due to facebook/relay#2429 (comment). I'd recommend staying on 1.5 for the time being.

from relay-todomvc.

taion avatar taion commented on July 18, 2024

Specifically, they're due to the upstream Relay bug described in that linked issue. It's not a bug in this code.

from relay-todomvc.

bahador avatar bahador commented on July 18, 2024

thank you

from relay-todomvc.

Related Issues (16)

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.