Using bit.envs/compilers/typescript@3.1.28, I am getting this error:
TypeError: Cannot read property 'disable' of undefined
at [...]/.git/bit/components/compilers/typescript/bit.envs/3.1.28/dist/ts-compiler/src/compile.js:271:36
The error leads to this line:
copyPolicy = context.cc.dynamicConfig.copyPolicy;
if (copyPolicy.disable) {
return [2, Promise.resolve([])];
}
I have a hunch this is expecting some compiler configuration, which is empty for compilers/typescript but built-in for compilers/typescript-react.
I am expecting the compiler to work out of the box, because I don't want any custom configurations.
Possible solutions:
Prompt a more descriptive error message. (where is the problem? what do I need to do?)
A 'guard' that will pre-validate the config, before executing the compiler.
Assume config is all optional (ie. using recursive partial).
Specifications
bit version : 14.7.1
node version : v12.12.0
npm version : 6.13.4
yarn version : 1.19.1
platform : darwin
Hey,
Using
bit.envs/compilers/typescript@3.1.28
, I am getting this error:The error leads to this line:
I have a hunch this is expecting some compiler configuration, which is empty for
compilers/typescript
but built-in forcompilers/typescript-react
.I am expecting the compiler to work out of the box, because I don't want any custom configurations.
Possible solutions:
Specifications
bit version : 14.7.1 node version : v12.12.0 npm version : 6.13.4 yarn version : 1.19.1 platform : darwin