Giter Club home page Giter Club logo

Comments (5)

ovidiuch avatar ovidiuch commented on June 9, 2024

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.

atrofimov-sc avatar atrofimov-sc commented on June 9, 2024

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.

ovidiuch avatar ovidiuch commented on June 9, 2024

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

atrofimov-sc avatar atrofimov-sc commented on June 9, 2024

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.

ovidiuch avatar ovidiuch commented on June 9, 2024

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)

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.