Skip to content

Prisma2 init in git-bash results in React component error #401

Closed

Description

@robinduerhager

moved from #353

Steps to reproduce

These steps should be tested with git-bash

  1. cd into a testing folder
  2. create a hello-prisma2 folder
  3. use prisma2 init hello-prisma2

After these steps, the error below should occur

The above error occurred in one of your React components:
    in Unknown
    in div (created by Box)
    in Box
    in div (created by Box)
    in Box
    in div (created by Box)
    in Box
    in Unknown
    in Unknown
    in App

React will try to recreate this component tree from scratch using the error
boundary you provided, App.

<Error occurs another 2-3 times>

Shells which worked after creating a hello-prisma2 folder are:

  • PowerShell
  • CMD
  • Hyper

Activity

  1. added
    bug/2-confirmed
    kind/bug
    on Aug 23, 2019
  2. pantharshit00 commented on Aug 23, 2019

    @pantharshit00
    Contributor

    I can confirm this.

    Since git bash is not an interactive/TTY terminal it might be a difficult workaround.

    Maybe #313 can help.

  3. vdjurdjevic commented on Aug 23, 2019

    @vdjurdjevic

    I also get this when running prisma2 dev inside Docker container with docker-compose. I've tried to add "tty: true" in docker-compose.yml for that container, but then I got: "Got invalid RPC response without .result property: {}" error. Also, an error occurs when running it with concurrently (https://www.npmjs.com/package/concurrently)

  4. pantharshit00 commented on Aug 23, 2019

    @pantharshit00
    Contributor

    @vladimirdjurdjevic
    Got invalid RPC response without .result property: {} is an actual binary panic. This issue is being tracked here #381

  5. divyenduz commented on Sep 6, 2019

    @divyenduz

    The init flow is completely rewritten, this error (React thing) should be fixed. The underlying error #381 is also fixed. I am closing this issue.

    If this problem persists for anyone, please create a new GH issue with a minimal reproduction and tag me there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/2-confirmedkind/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions