Hello,
I am trying to extend angularV12 env and create my own custom environment.
The following code works fine with bit v0.0.748 when running bit start
import * as path from 'path';
import { EnvsMain, EnvsAspect } from '@teambit/envs'
import { AngularV12Aspect, AngularV12Main } from '@teambit/angular-v12'
export class WebEnvExtension {
static dependencies: any = [EnvsAspect, AngularV12Aspect]
static async provider([envs, angular]: [EnvsMain, AngularV12Main]) {
const compilerOptions = angular.overrideCompilerOptions({
fullTemplateTypeCheck: false,
strictPropertyInitialization: false
});
const angularOptions = angular.overrideAngularOptions({
styles: [path.resolve('node_modules/@ntmnt/uikit.styles.core/index.scss')]
});
const WebEnvEnv = angular.compose([compilerOptions, angularOptions])
envs.registerEnv(WebEnvEnv)
return new WebEnvExtension()
}
}
However it throws the following error with bit v0.0.814 when I run bit start
After some investigation I found out that EnvRuntime created via angular.compose mises envAspectDefinition property.
Please let me know if something has changed and I should extend my env in another way!
Hello, I am trying to extend angularV12 env and create my own custom environment. The following code works fine with bit v0.0.748 when running
bit start
However it throws the following error with bit v0.0.814 when I run
bit start
After some investigation I found out that
EnvRuntime
created viaangular.compose
misesenvAspectDefinition
property.Please let me know if something has changed and I should extend my env in another way!
Also here is the part of my workspace.jsonc: