qjon / angular2-filemanager

MIT License
15 stars 9 forks source link

Not able to integrate this plugin in my angular 2 based project #19

Closed gotephodevishal closed 6 years ago

gotephodevishal commented 6 years ago

Hi Rafal, I am trying to integrate this plugin in my angular 2 based project. I followed the declaration structure as mentioned in Demo example. npm is throwing error when FileManager module is imported in @NgModule After adding FileManagerModule in @NgModule import section I am always getting errors as-

ERROR in ./src/app/admin/admin.module.ts
Module not found: Error: Can't resolve '@rign/angular2-filemanager/main' in 'myproject\src\app\admin'
resolve '@rign/angular2-filemanager/main' in 'myproject\src\app\admin'
  Parsed request is a module
using description file: myproject\package.json (relative path: ./src/app/admin)
    Field 'browser' doesn't contain a valid alias configuration
  after using description file: myproject\package.json (relative path: ./src/app/admin)
    resolve as module
myproject\node_modules doesn't exist or is not a directory.
qjon commented 6 years ago

Hi,

Demo used internal src directory to import FilemanagerModule. In you project you should install @rign/angular2-filemanager in latest version (currently, 1.3.0) and import all package elements form '@rign/angular2/tree', so it should like:

import {FilemanagerModule} from '@rign/angular2-filemanager

Please, give me feedback if I have right

gotephodevishal commented 6 years ago

Thanks Rafal. You are right. I was trying import modules from import {FilemanagerModule} from '@rign/angular2-filemanager/main'

gotephodevishal commented 6 years ago

Hi @qjon , Sorry to disturb you again but need your help in 2 issues.

  1. Now when running that file manager page in browser console gives an StaticInjectorError as below - screenshot_1

  2. can you explain or guide me, how to implement the back-end API side functionality to link tree folder structure to blob storage

qjon commented 6 years ago

Duplicated comment #20