techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.73k stars 482 forks source link

Module not found: Error: Can't solve 'fs' #863

Closed samir-ayoub closed 3 years ago

samir-ayoub commented 3 years ago

We developed an Angular-based storage library and provided LokiJS available as a driver option. However, it throws an warning message related with LokiJS and this error also appears with other people who use our library:

WARNING in Project /node_modules/lokijs/src/lokijs.js
Module not found: Error: Can't solve 'fs' in ‘Project/node_modules/lokijs/src'

We know that Angular no longer allows the import of modules not related to web apps. Is there any configuration that I can add related to LokiJS? We tried to add env: BROWSER to the instance but the error persists.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.