2 import { IGridsterDraggableOptions, IGridsterOptions } from 'angular2gridster';
I'm importing gridster module to my shared.module:
import { GridsterModule } from 'angular2gridster';
imports: [
...,
GridsterModule.forRoot()
],
exports: [
...,
GridsterModule
]
and I'm importing shared.module across my app where the other errors occur.
In the components I'm importing as the error states, directly from 'angular2gridster' and from Ivy docs that I've read I think that might be a problem, since I had to reorganize my imports for other components.
I've tried importing from other locations provided in angular2gridster, namely angular2gridster/lib and angular2gridster/src.
I have not tried copying component to my project since I want to migrate to higher versions of angular as updates become available on my dependencies. I have deleted node_modules and package-lock.json and tried reinstalling.
I'm running ngcc postinstall, I'm not sure there's anything else I can do from angular side.
Any help on this regard would be welcome, since I have a feeling I'm running in circles since on my local machine I'm completing a prod build without any problems.
Thanks in advance.
EDIT: Error was in our project, we had overrides for angular2gridster in our source control, and npm install didn't install the newer version of angular2gridster since it saw there was a folder. Sorry for confusion.
Hello, I've update my apps dependencies to angular 9 and bumped angular2gridster to version 9.0.0.
I've managed to build the app locally but when I deploy to my dev server I get following messages:
ERROR in src/app/common/shared.module.ts:9:32 - error TS2307: Cannot find module 'angular2gridster'.
9 import { GridsterModule } from 'angular2gridster';
src/app/administration/role/edit/page/edit.page.component.ts:2:53 - error TS2307: Cannot find module 'angular2gridster'.
2 import { GridsterComponent, IGridsterOptions } from 'angular2gridster';
src/app/sales/view/kanban-view/kanban-view.component.ts:2:61 - error TS2307: Cannot find module 'angular2gridster'.
2 import { IGridsterDraggableOptions, IGridsterOptions } from 'angular2gridster';
I'm importing gridster module to my shared.module:
import { GridsterModule } from 'angular2gridster';
imports: [ ..., GridsterModule.forRoot() ],
exports: [ ..., GridsterModule ]
and I'm importing shared.module across my app where the other errors occur.
In the components I'm importing as the error states, directly from 'angular2gridster' and from Ivy docs that I've read I think that might be a problem, since I had to reorganize my imports for other components.
I've tried importing from other locations provided in angular2gridster, namely angular2gridster/lib and angular2gridster/src. I have not tried copying component to my project since I want to migrate to higher versions of angular as updates become available on my dependencies. I have deleted node_modules and package-lock.json and tried reinstalling.
I'm running ngcc postinstall, I'm not sure there's anything else I can do from angular side.
Any help on this regard would be welcome, since I have a feeling I'm running in circles since on my local machine I'm completing a prod build without any problems.
Thanks in advance.
EDIT: Error was in our project, we had overrides for angular2gridster in our source control, and npm install didn't install the newer version of angular2gridster since it saw there was a folder. Sorry for confusion.