I'm trying to compile a component, and getting this error:
No path specified! Can not get relative.
Always happens for compiler [email protected]
3.0.4 was my 'go to' version because it managed to actually build, including .d.ts, as long as I limited the component to a single file 馃槩
It is especially bad because I have a lot of component using this compiler that I can't tag and export back. 馃樀
[email protected] obviously do not work and tries to compile node_modules. 馃槶
I believe I tagged components with this compiler last week (~6.11.19), so maybe it's a breaking change in an indirect dependency?
I tried the following bit versions: 14.4.3, 14.4.1, 14.2.5, 14.2.0, 14.1.3.
bit version : 14.4.3
node version : v12.12.0
npm version : 6.11.3
yarn version : 1.19.1
platform : darwin
@KutnerUri please provide steps to reproduce
bit import amit.capsule-dev/xterm/capsule-addonbit build@KutnerBitsrc , If I remember correctly, this exact error was fixed once you updated the compiler to the latest typescript. The react-typescript is deprecated.
When I debugged this error on another component you had, I noticed that the react-typescript compiler returns an array of files and undefined values. These undefined values are the ones that cause Bit to generate the error above.
cc: @GiladShoham , @qballer maybe explicitly setting react-typescript as deprecated could help. (if not done already).
I can confirm new [email protected] compile correctly, though still validates node modules. [email protected] should do the same for react (where did v3.0.35 go??)
Most helpful comment
@KutnerBitsrc , If I remember correctly, this exact error was fixed once you updated the compiler to the latest typescript. The react-typescript is deprecated.
When I debugged this error on another component you had, I noticed that the react-typescript compiler returns an array of files and
undefinedvalues. These undefined values are the ones that cause Bit to generate the error above.cc: @GiladShoham , @qballer maybe explicitly setting react-typescript as deprecated could help. (if not done already).