Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Eddy Nguyen
    @eddeee888
    Screen Shot 2020-01-11 at 6.41.22 pm.png
    In the second picture, after manually importing Button from the package, other components in the same package starts to come up ( ButtonOr, ButtonGroup , etc. )
    Tally Barak
    @Tallyb
    @/all New beginnings. We are moving our community support to slack. We believe we can make conversations there more fruitful. Use this link https://join.slack.com/t/bit-dev-community/shared_invite/enQtNzM2NzQ3MTQzMTg3LWI2YmFmZjQwMTkxNmFmNTVkYzU2MGI2YjgwMmJlZDdkNWVhOGIzZDFlYjg4MGRmOTM4ODAxNTIxMTMwNWVhMzg to register to our community slack, if you are not yet there, and we will see you over there. Regards, the Bit team.
    1 reply
    Josh Kuttler
    @JoshK2
    Hey!
    I just published a new version of React Native compiler and I would appreciate some feedback.
    https://bit.dev/bit/envs/compilers/react-native/
    Daniel Kappler
    @nabbl
    Can someone help me getting my stylesheets (scss) to work correctly? I want to do a separate component for them with namespace stylesand then refer to them in my other components. how do I make this work in angular environment ?
    error: the component styles does not contain a main file.
    Daniel Kappler
    @nabbl
    Why does it need a main file ?
    ok.. just saw that slack is the thing now :D
    Min Nam
    @minnam
    This message was deleted
    Nikolai Iakovlev
    @DeyLak

    Hey!
    I just tried to update my ts compiler and now I'm getting this error, when trying to build a component:

    error: bit failed to build pik-pro.mobile-apps/pages/page-profile@1.9.13 with the following exception:
    Cannot read property 'split' of undefined
    TypeError: Cannot read property 'split' of undefined
        at getNameOfFile (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:301:56)
        at /Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:213:48
        at step (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:33:23)
        at Object.next (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:14:53)
        at /Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:8:71
        at new Promise (<anonymous>)
        at __awaiter (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:4:12)
        at createConfigFile (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:209:12)
        at /Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:104:23
        at step (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:33:23)
        at Object.next (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:14:53)
        at /Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:8:71
        at new Promise (<anonymous>)
        at __awaiter (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:4:12)
        at preCompile (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:100:12)
        at Object.<anonymous> (/Users/deylak/Desktop/ForLovelyMe/Repository/pik-pro-master-app/.git/bit/components/compilers/typescript/bit.envs/3.1.38/dist/ts-compiler/src/compile.js:73:32)

    I used version 3.1.0 previously and it worked fine. Now I'm trying to update to ts@3.7.5 and all compiler versions with that release of typescript are throwing this error.

    itay mendelawy
    @itaymendel_twitter
    Hi @DeyLak can you please open a github issue here https://github.com/teambit/envs ? Ill have my team look at it asap
    Nikolai Iakovlev
    @DeyLak
    @itaymendel_twitter sure teambit/envs#86
    Ryan Ju
    @ryan-ju
    Hi, I'm trying out the react-typescript compiler. The problem I have is that it puts the output from all components into a single top level dist/ directory, so everything is jumbled together. Is there a way to make it preserve the folder structure of each component?

    My project structure:

    ├── package.json
    ├── src
    │   ├── components
    │   │   ├── SignIn
    │   │   │   └── index.tsx
    │   │   └── SignUp
    │   │       └── index.tsx
    │   └── utils
    │       ├── auth
    │       │   ├── jwt
    │       │   │   └── index.ts
    │       │   └── server
    │       │       └── index.ts
    │       ├── logging
    │       │   └── index.ts
    │       └── styles
    │           └── README.md

    dist/

    ├── dist
    │   ├── README.md
    │   ├── index.d.ts
    │   ├── index.js
    │   ├── index.md
    │   ├── jwt
    │   │   ├── index.d.ts
    │   │   └── index.js
    │   └── server
    │       ├── index.d.ts
    │       └── index.js
    Ryan Ju
    @ryan-ju
    ^ as you see, the index files from each component is put in the top level of dist/, so they overwrote each other
    Josh Kuttler
    @JoshK2
    Hey @ryan-ju , I'll try to reproduce this error and see what is wrong.
    Ryan Ju
    @ryan-ju
    Another problem,
    $ bit import bit.envs/testers/jest
    failed running npm install at /Users/ran/Projects/ui-platform-utils/envs/components/testers/jest
    npm ERR! code E404
    npm ERR! 404 Not Found - GET https://registry.npmjs.org/@bit%2fbit.utils.validation.empty - Not found
    npm ERR! 404
    npm ERR! 404  '@bit/bit.utils.validation.empty@0.0.1' is not in the npm registry.
    npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
    npm ERR! 404 It was specified as a dependency of 'jest'
    npm ERR! 404
    npm ERR! 404 Note that you can also install from a
    npm ERR! 404 tarball, folder, http url, or git url.
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /Users/ran/.npm/_logs/2020-02-06T10_50_53_789Z-debug.log
    
    see troubleshooting at https://docs.bit.dev/docs/installing-components
    
    run 'bit doctor' to get detailed workspace diagnosis and issue resolution.
    Looks like the @bit%2fbit.utils.validation.empty isn't exported to npm?
    Ryan Ju
    @ryan-ju
    I really like bit, but sorry I have to leave it, because I cannot get a MVP easily enough to convince my team to use it. Hope after a few years we'll come back when those issues are fixed.
    Doron Tsur
    @qballer
    hey @ryan-ju are you around ?
    I'm a senior developer on the team. Is there anything I can help you with ? I work mainly on the environment which compile and test code.
    Anyways there was a move to a slack community. This meant that the team was mainly hanging there and we missed messages here.
    I'm going to stay on gitter. Let me know when you get back.
    itay mendelawy
    @itaymendel_twitter
    hi @ryan-ju i'm sorry for being un-responsive.
    A while ago we've migrated the chat to Slack. Please join here to continue the conversation.
    as for the npm i issue, you need to configure your .npmrc file to connect have your client configured to bit @bit registry. see here for more information.
    Ryan Ju
    @ryan-ju
    Thanks for the response guys. Didn't mean to annoy anyone, it's just I'm under pressure to come up with a component management solution for my company. Currently we're deciding between Lerna and Bit, and I'm the one prototyping with bit. I'll come to the slack channel.
    itay mendelawy
    @itaymendel_twitter
    no worries @ryan-ju . i completely understand tight schedules and I hope to be able to help you during the onboarding
    Doron Tsur
    @qballer
    @itaymendel_twitter please ping me if you guys need anything
    Joe Pea
    @trusktr
    Hello you all. Is bit good for managing a repo with a bunch of projects as git submodule inside the "umbrella repo"?
    Joe Pea
    @trusktr
    I was trying a tool called Rush.js, which symlinks projects to each other all at once, so we don't have to run npm link in each of them for each dependency of each project. Does bit make developing (linking) with multiple projects easier?
    Joe Pea
    @trusktr

    Looks like to use Bit, I need to buy into it's module specifier conventions. Can this be avoided? Suppose each project (which is a submodule in my umbrella repo) contains web components, and I want to share them across projects (some projects are apps, some are libs).

    Does bit make it easy to use only Node.js-style import specifiers and store everything on NPMjs.com?

    Ah, I see, Bit calls them "workspaces". So then, in my case, I am looking to have an "umbrella repo" with a bunch of Bit "workspaces" as git submodules. Would this work?

    Basically, I'd like a big "umbrella repo" to house all my related apps and libs as git submodules.

    It seems that we would need to run bit init in each workspace (git submodule). Now I'm wondering if this can be done automatically across all "workspaces".
    Joe Pea
    @trusktr

    If I use my own server for hosting, is it possible to modify the @bit scope name to something else?
    I'm gonna guess that any components published to a custom server are not discoverable bit.dev?
    itay mendelawy
    @itaymendel_twitter

    hi @trusktr , we've moved to a slack community and left gitter a few weeks ago.
    https://join.slack.com/t/bit-dev-community/shared_invite/enQtNzM2NzQ3MTQzMTg3LWI2YmFmZjQwMTkxNmFmNTVkYzU2MGI2YjgwMmJlZDdkNWVhOGIzZDFlYjg4MGRmOTM4ODAxNTIxMTMwNWVhMzg

    As for your questions, BIt is designed to handle smaller components, and not for projects.
    Usually, teams use lerna/rush to manage a small number of large projects in the same repository. On the other hand, Bit is designed to manage many small "projects" (modules/components) in the same workspace. technically it's possible to manage larger projects, but it is not optimized for it. Bit is optimized for projects with a relatively small amount of code and a lot of dependencies.
    it's possible to group together several Bit workspaces, each with its own set of components, in the same "master" workspace.

    as for sharing components to npmjs, it's possible, but you'll need to implement an extension to do just that. it's also possible to change the default @bit, but this is not supported when hosting code on bit.dev .

    Joe Pea
    @trusktr

    @itaymendel_twitter Cool! Thanks for that info. Seems that Bit can be paired with Lerna/Rush. F.e. I can use Lerna to run test commands across multiple repos, and the test commands can trigger Bit commands in each of the projects.

    What about symlinking dependencies for development? Suppose I want to edit code for a component and see the changes in multiple projects at once? Normally Lerna cross links dependencies, or we can manually link local projects into dependents the old npm link way, and test changes across them all at once. Does bit have such feature for developing a component and testing it across across multiple projects at once?

    mr.vacoo
    @vacoo
    djjd
    Marc G.
    @Mouvedia
    compile() deprecated, please use compile() instead
    that's a really cryptic error message to say the least
    Francis Cargullo
    @francis18_gitlab

    Please help me with this error... I am having hard time resolving this error... same export command but the second time I am getting this.

    error: component ID is invalid, please use the following format: [scope]/<name>

    Vương Hiếu
    @hieuvt.mangotech_gitlab
    please help me : Cannot find name 'process'. Do you need to install type definitions for node? Try npm i @types/node and then add node to the types field in your tsconfig.
    codingjavascript777
    @codingjavascript777
    hi , It would be great to get any suggestion for below issues : with this compiler configuration bit.envs/compilers/react-typescript , I getting following errors building component - bit.envs/compilers/react-typescript@3.1.5
    error: bit failed to build app with the following exception:
    Command failed with exit code 1 (EPERM): npm install --no-save
    Error: Command failed with exit code 1 (EPERM): npm install --no-save
    Jose de la Paz Jr
    @josedelapazjr
    ^ having the same issue as well.
    @codingjavascript777 Did you manage to solve this issue?
    Logan Dexter
    @Logandexter_gitlab

    Hello, sorry for invading your privacy

    Please I will appreciate if you read

    I am Logan Dexter from Netherlands

    I want to introduce you to a money making opportunity. Its a bitcoin trading company that helps you generate profit through trading cryptocurrency

    It’s a highly profitable investment platform, it helps you trade and generate profits and then send it to your account daily. You will be able to earn 10% of your investment daily for up to 30 days and you also get your principal

    I know it sounds too good to be true, I understand because I also felt like that when I first met them but now am fully convinced that it’s all true because I have earned up to $5000 with them.

    You can also earn 5% in referral bonus if you don’t have capital, All you need to do is refer someone and you can also earn. As am doing now

    It doesn’t require much of your time, all you need to do is register and deposit and you will start earning daily

    If you don’t know anything about bitcoin you can also text me on Whatsaap so I will educate you more.

    Visit http://Ftxfutures.io//?ref=Logan
    Or chat me on Whatsaap for more explanation https://wa.me/message/3GUAIPJFDS5KJ1

    xiao
    @xiaolee55
    image.png
    whats this wrong
    Seya Obey
    @seyaobey

    Hi all. I'm new to bit.dev. I would like to create a custom npm cli tool and host it on bit.dev for distribution. My question is: suppose I have created a nodejs project, with a (trimmed down) package.json:

    {
      "name": "xxx",
      ...
      "main": "./dist/plopfile.js",
      "scripts": {
        "plop": "plop --plopfile ./dist/plopfile.js"
      },
      "bin": {
        "my-plop": "./dist/index.js"  },
      ...
      "devDependencies": {
        ...
      },
      "dependencies": {
        ...
      }
    }

    On the root of the project, I've created an index.js file with the #!/usr/bin/env node instruction.
    How do I go about deploying this tool with bit.dev? Do I create just a component with all required files (package.json, index.js) and then when I import this component in a new project, can I run it as a script command? In other words is it possible to deploy a normal npm cli with bit.dev?
    Thanks for your assistance.