0

I have lib which is published in Verdaccio. In this lib I have CustomFieldModule. I have created new component with own module TextAreaAutosizeModule and imported in CustomFieldModule. I have created index file inside text-area

export * from './textarea-autosize.component';
export * from './textarea-autosize.module';

And also updated root package in export * from './textarea-autosize'; then publish. After publishing I do npm install. And then I have the following error

Failed to find exported name of node (class TextAreaAutosizeModule )

my CustomFieldModule

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { TextFieldModule } from '@angular/cdk/text-field';

import { TextareaAutosizeComponent } from './textarea-autosize.component';

@NgModule({
  declarations: [TextareaAutosizeComponent],
  imports: [CommonModule, FormsModule, ReactiveFormsModule, TextFieldModule],
  exports: [TextareaAutosizeComponent],
})
export class TextAreaAutosizeModule {}

also I have checked node_modules/my-package.js file and see that there is no TextAreaAutosizeModule in Generated bundle index export {...all modules except my}
What am I doing wrong ?

Sunstrike527
  • 515
  • 1
  • 4
  • 17

0 Answers0