Open romrg opened 4 years ago
Unable to compile a component with react-typescript env.
npx create-react-app my-app --template typescript
bit init
bit import -c bit.envs/compilers/react-typescript
import React from 'react'; export default () => <div/>;
bit add src/MyComponent
bit build my-component
Used this tutorial : https://medium.com/@vagacoder/how-to-use-react-and-typescript-in-bit-dev-89a1260d2d9f
A successful build is expected since the environment is basic and the component minimal.
error: bit failed to build my-component with the following exception: Cannot find module '../../components/core/capsule'
The same issue here
Describe the bug
Unable to compile a component with react-typescript env.
Steps to Reproduce
npx create-react-app my-app --template typescript
bit init
bit import -c bit.envs/compilers/react-typescript
bit add src/MyComponent
bit build my-component
Used this tutorial : https://medium.com/@vagacoder/how-to-use-react-and-typescript-in-bit-dev-89a1260d2d9f
Expected Behavior
A successful build is expected since the environment is basic and the component minimal.
Screenshots, exceptions and logs
error: bit failed to build my-component with the following exception: Cannot find module '../../components/core/capsule'
Specifications