I used Lokijs in my application and i managed to import both lokijs and loki-cordova-fs-adapter, but on ionic server i got such messages:
[19:12:20] rollup: Treating ‘fs’ as external dependency
[19:12:24] rollup: No name was provided for external module ‘fs’ in options.globals – guessing ‘fs’
main.dev.js:3 Uncaught ReferenceError: fs is not defined
I tried different solutions from rollup issues, but nothing helped:
Maybe some one know how to solve this issue?