Comments (5)
Hi @atrofimov-sc, sorry for all the confusion, I guess the custom bundler guide could be improved but there are so many variations in user setup and this is not a trivial task. The easiest thing to get past this step is if you provided a public repo that reproduces your setup (and the issues you are facing). I'll be able to clone it and tell you exactly what's missing. Let me know if you can provide this, thanks!
from react-cosmos.
I'll try to do a repro, but time is hard to come by right now.
I'll say I'm still able to use the product by specifying "rootDir": "src",
in the config. Though the cosmos.imports.ts
is still in the wrong folder (would like it to be under src/dev). The erroneous behavior only if the --rootDir
setting is set via a flag.
from react-cosmos.
@atrofimov-sc Did you try setting exposeImports
to "dev/cosmos.imports.ts"
in your Cosmos config?
https://reactcosmos.org/docs/configuration/cosmos-config#config-options
from react-cosmos.
Yes I have. I'm sorry for still not having done a repro, but the full command was cosmos --expose-imports --rootDir=src
. When I specify these in the cosmos.config.json
instead of the CLI, it works. That's what I'm doing now.
from react-cosmos.
If for whatever reason you prefer passing those options via CLI args you can also pass a path to --expose-imports
like you do to --rootDir
.
from react-cosmos.
Related Issues (20)
- 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 --expose-imports` seems to have stopped building imports at some point HOT 3
- 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
- Getting "Waiting for renderer" - how troubleshoot HOT 4
- Stop firing keyboard shortcuts when typing inside contenteditable
- No support for non-server components in Next.js HOT 2
- Error when running latest version of Next.js
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.