Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache model so it doesn't break trying to re-compile #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brunolm
Copy link

@brunolm brunolm commented Nov 14, 2017

No description provided.

@brunolm
Copy link
Author

brunolm commented Nov 14, 2017

I accidentally made the pull request here, but well, maybe it can be useful to you or someone.

In my scenario I had a code from long ago that was using the version from npm. The problem is: that version doesn't work with npm 5, in the system I changed it was using npm 1.4...

I found your fork and I thought it was a nice one. But when I tried to migrate my code I kept running in an error that would say the model was already compiled and the application would exit.

So I investigated this package's code and saw that there was a cache system, but apparently that's not being used.

I changed the code so it uses that caching system, and with that it no longer breaks on multiple uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant