Comments (3)
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.
@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.
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)
- Setup of React Native not clear HOT 3
- Can't change webpack.output.publicPath via cosmos.webpack.js HOT 2
- Live demo is not working HOT 1
- The top-level-await experiment is not enabled (set experiments.topLevelAwait: true to enabled it) HOT 5
- Increase awareness of the ability to override Webpack config HOT 1
- Webpack emits DefinePlugin warning on a fresh install with create-react-app HOT 2
- Unable to get started with vite plugin following the setup docs HOT 10
- Props tab show nothing when decorator for fixture not include `children` in response HOT 7
- Alert shows the wrong port number (minor) HOT 2
- Cosmos cannot find Vite configuration file with "ts" extension HOT 4
- Respect SSL option when connecting to websocket HOT 4
- fixture fails to enter fullscreen mode HOT 6
- Can't get cosmos to run with or without babel-loader or ts-loader HOT 4
- Cosmos.imports.ts isn't created nor updated on subsequent runs of npm run cosmos HOT 3
- Unable to use alias Preact in `next` branch HOT 9
- Fixture Error : Lazy element type must resolve to a class or function HOT 3
- Build fails with node@20 HOT 4
- Next.js 14 no longer allows 'use client' and generateStaticParams() to be used together HOT 3
- Does not show multi fixture with custom bundler (Parcel) HOT 4
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-cosmos.