goJS angular integration error

import { BrowserModule } from '@angular/platform-browser';
import { NgModule, Injector } from '@angular/core';
import { ApptorCanvasComponent } from './canvas/canvas.component';
import { createCustomElement } from '@angular/elements';
import {GojsAngularModule} from 'gojs-angular';


@NgModule({
  declarations: [],
  imports: [
    BrowserModule,
    GojsAngularModule
  ],
  providers: [],
  entryComponents: [CanvasComponent]

})
export class AppModule { 
   constructor(private injector: Injector) {
  }
  ngDoBootstrap() {
    const widget: any = createCustomElement(CanvasComponent, { injector: this.injector });
    customElements.define('canvas', widget);
  }
}

in canvas-component.ts file

import * as go from 'gojs';
import { DataSyncService, DiagramComponent, PaletteComponent } from 'gojs-angular';

npm run build giving error
‘gojs-palette’ is not a known element:

  1. If ‘gojs-palette’ is an Angular component, then verify that it is part of this module.
  2. If ‘gojs-palette’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message.

From what you posted, I don’t really understand your app structure. Are you referencing gojs-palette anywhere? Have you seen gojs-angular-basic, which demonstrates use of the palette component (and most aspects of gojs-angular)?

If that doesn’t help, can you upload a minimal sample angular project to github so I can try to figure out the problem?