Coder Social home page Coder Social logo

Comments (3)

oponder avatar oponder commented on May 28, 2024 1

setting our package.json to next seems to fix the issue:

    "react-cosmos": "next",
    "react-cosmos-dom": "next",
    "react-cosmos-renderer": "next",
// yarn.lock

... 

[email protected]:
  version "6.0.0-beta.5"
  resolved "https://registry.yarnpkg.com/react-cosmos-core/-/react-cosmos-core-6.0.0-beta.5.tgz#66a1dbc2d234e2f55248be51b6dd06ed0be8a942"
  integrity sha512-6htNpF6YGQZIAWMRa+XZ9ltpIzIt0L2ZrrO+yXuTYH/OfQnvBb9awLvha/XT290KX/LVhKl+H95dMqBMuEENRA==
  dependencies:
    js-base64 "^3.7.5"
    lodash-es "^4.17.21"
    react-is "^18.2.0"

react-cosmos-dom@next:
  version "6.0.0-beta.6"
  resolved "https://registry.yarnpkg.com/react-cosmos-dom/-/react-cosmos-dom-6.0.0-beta.6.tgz#8c00ad94d8fb653739b98566dc8f0b8a61a27033"
  integrity sha512-3xZuIuJy3cjh+9m7E5TF4HUhJTj1KKtmHp4P0djfbvzZTvQsALLluQmn0OddU1RiSN98sJiPruWhcEZC2SmdRg==
  dependencies:
    lodash-es "^4.17.21"
    react-cosmos-core "6.0.0-beta.5"
    react-cosmos-renderer "6.0.0-beta.5"

[email protected], react-cosmos-renderer@next:
  version "6.0.0-beta.5"
  resolved "https://registry.yarnpkg.com/react-cosmos-renderer/-/react-cosmos-renderer-6.0.0-beta.5.tgz#d51868f85383b2b3e73492dad07936f5c282df89"
  integrity sha512-8ZO7qg84TVW0qbRuMsQodLoKUxtkza0a2Vz+/bojekNZIG+CEHNNFgIHsXLSDrg2vlT97rLnrBaAoGUvLikouA==
  dependencies:
    lodash-es "^4.17.21"
    react-cosmos-core "6.0.0-beta.5"
    react-is "^18.2.0" 
    
... 
    

Now we see "Generated cosmos.imports.ts"

$ yarn cosmos
yarn run v1.22.19
$ cosmos --expose-imports
[Cosmos] Using cosmos config found at cosmos.config.json
[Cosmos] See you at http://localhost:5000
[Cosmos] Generated cosmos.imports.ts

from react-cosmos.

ovidiuch avatar ovidiuch commented on May 28, 2024 1

@oponder Maybe before when you were on 6.0.0-beta.6 some mismatched canary versions where installed? I've seen this before and it's an annoying issue with the next/canary channels. Because c comes after b if you have a ^x-beta package you might get a x-canary version when you blow up your yarn.lock. For this reason I remove the ^ or ~ signs from beta versions to make sure I pin my dependencies strictly.

from react-cosmos.

oponder avatar oponder commented on May 28, 2024 1

Yeah I think that was it, I didn't understand correctly how to set the versions matcher in this case. Thanks for the reply!

from react-cosmos.

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.