Skip to content

Conversation

adumesny
Copy link
Member

@adumesny adumesny commented May 21, 2023

Description

  • partial fix Export Angular module that uses gridstack components #2310
  • we now include GridstackModule for the angular import - unfortunately the TSC export doesn't seem right format fo Ng app to include - get "not a module"
  • Also include the source .ts + module (easier to copy) under gridstack/dist/ng/src

But including

import { GridstackModule } from 'gridstack/dist/ng/src/gridstack.module';

@NgModule({
  imports: [
    GridstackModule,
    ...
  ],

gives

main.ts:11 ERROR TypeError: Cannot read properties of undefined (reading 'ɵcmp')

so not clear how yet to export it...

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* partial fix gridstack#2323
* we now include GridstackModule for the angular import - unfortunately the TSC export doesn't seem right format fo Ng app to include - get "not a module"
* Also include the source .ts + module (easier to copy) under gridstack/dist/ng/src

But including
import { GridstackModule } from 'gridstack/dist/ng/src/gridstack.module';
@NgModule({
  imports: [
    GridstackModule,
    ...
  ],

gives
main.ts:11 ERROR TypeError: Cannot read properties of undefined (reading 'ɵcmp')

so not clear how yet to export it...
@adumesny adumesny merged commit ea25c65 into gridstack:master May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export Angular module that uses gridstack components
1 participant