You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use the the function addModuleImportToRootModule in the following way:
addModuleImportToRootModule(
host,
`MyModule.forRoot(
{
option1: '<value of option1>',
option2: '<value of option2>',
})`,
'@mycompany/my-module',
project
);
As result, I get an invalid import statement in my app.module.ts. The module will be added correctly to the NgModule, but create an invalid import statement:
import { MyModule.forRoot(
{
option1: '<value of option1>',
option2: '<value of option2>',
}) } from '@mycompany/my-module';