I am having a problem with the usage of 'fs-extra' module.Like I have tried these both methods-
Method-1
const fs = joplin.plugins.require('fs-extra');
This one is have error like no property require on "joplin.plugins".I think it is a version issue as minimum version supported by my plugin is 1.7. And this method is available for 1.8 and above.
Method-2
const fs = require('fs-extra');
and this one is throughing error something like this is coming on terminal -
ERROR in ./dist/index.js
Module not found: Error: Can't resolve 'fs' in '....\dist'
@ ./dist/index.js 1:9350-9363
Like what is the proper way to install it I have installed this module with " npm install fs-extra " and it is present in my package.json.Now it is not present in the ./dist/index.js it means it is some kind of error related to the building process.