Editing the file-manager.js in node_modules

Hello,

I actually want to add some minor thing in the node_modules\@syncfusion\ej2-filemanager\src\file-manager\base\file-manager.js

But whenever I add any console logging to this file it doesn't get logged of reflected in the file loaded in browser.
Do I need to edit the node_modules\@syncfusion\ej2-filemanager\dist and if so how do I do this.

Thanks,

1 Reply 1 reply marked as answer

IL Indhumathy Loganathan Syncfusion Team May 6, 2021 12:24 PM UTC

Hi Omar, 
 
Greetings from Syncfusion support. 
 
We have validated your requirement in File Manager component. As you mentioned, we have modified the node_modules\@syncfusion\ej2-filemanager\src\file-manager\base\file-manager.js file and printed the result through console log. Modifying this file is enough to update the required details. Please refer the below video where we have printed the view of the FileManager on initial rendering and args value while uploading a file. 
 
 
We have also attached the modified file in the above link. Please check whether the console log is updated in your sample by replacing the above file. If not, please share the below details from your end to proceed further. 
 
1.      Exact code or line number in file where console log is being added. 
2.      Whether you want to perform any custom changes in any particular method or event. 
3.      If possible, share your modified filemanager.js file else revert by modifying the above shared file. 
 
Regards, 
Indhumathy L 


Marked as answer
Loader.
Up arrow icon