You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building an app with NeDB and Electron and using Rollup to bundle the JS modules I include. When I compile the JS and start the application with Electron, I get the following error:
TypeError: Cannot read property 'prototype' of undefined
Investigating the stack leads back to an issue with line 81 in lib/datastore.js. What I think is happening is that Rollup cannot resolve a require statement that handles object notation. To fix this, I've moved the require statement to the top of the file. The fix can be seen in the following pull request:
The text was updated successfully, but these errors were encountered:
I'm building an app with NeDB and Electron and using Rollup to bundle the JS modules I include. When I compile the JS and start the application with Electron, I get the following error:
Here is a gist that can reproduce this issue:
https://gist.github.com/nnooney/816ad3f483aa7b85e7dcd64896de0cac
Investigating the stack leads back to an issue with line 81 in
lib/datastore.js
. What I think is happening is that Rollup cannot resolve arequire
statement that handles object notation. To fix this, I've moved the require statement to the top of the file. The fix can be seen in the following pull request:The text was updated successfully, but these errors were encountered: