-
Notifications
You must be signed in to change notification settings - Fork 186
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
Fix problem with bcrypt library linkage breaking in dev #1391
Comments
Now seeing this manifest in a slightly different manner with This time, the Very unclear why this issue is manifesting this way, but it only seems to occur when trying to run in development mode, so maybe this has to do with the typescript watch somehow. In any case, clear now that this is an actual bug (if intermittent) that needs to be solved, not just a transient issue due to old build state on my machine (this new error was reported by a new developer just firing up the project). |
This message might be relevant (from the npm build log):
|
* try to switch to bcryptjs * switch auth.password module to use bcryptjs; fixes #1391
@sirodoht Thanks again for helping debug this! I'm sorry we weren't able to get it resolved sooner while the hack night was still ongoing, but I think I figured out why switching to bcryptjs didn't work. There was an additional server file that we needed to update to refer to bcryptjs (also, it took a couple of starts for the change to get picked up). Anyway, this should be resolved now, and I'd greatly appreciate it if you'd give it another whirl when you have time. Thanks again! |
Just tried and it works now! I think the problem wasn't the second file after all, but the fact that I didn't |
Excellent! Glad to hear it. And yes, not cleaning out the Nevertheless, on my first pass through it didn't work, and I very nearly missed that the error the second time around was coming not from Anyway; Glad to have this resolved, whatever the original issue actually was. Thanks again for persisting on this with me! |
using bcryptjs instead of bcrypt solved my issue
using bcryptjs instead of bcrypt solved my issue |
Had trouble getting the system started with docker-compose with the dev overlay because I kept getting an error like
Error: Cannot find module .... bcrypt
.This seemed to have been caused by some build directory corruption, and was fixed by the suggestion here of running
npm rebuild
. Of course, this had to be done from within thepolis-server
container, so the trick is to get the system running, then rundocker ps
to find the process id, then use that in the commanddocker exec -it xxxxxxxx /bin/sh
to get a shell, from whichnpm rebuild
can be executed.Any additional context which might be relevant?
I've had similar problems with
primordials
in the past which might have been fixed by doing this.I wish there was a way to get fresh builds every time (for sure), but this might have to do with the image mapping (as a dev convenience), combined with some failure of npm to do the right thing.
The text was updated successfully, but these errors were encountered: