-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Parcel 2: parcel build
fails with error related to lmdb-store
#7237
Comments
parcel build
fails with error related to lmdb-store
@Biosphakus I create a test release with some of the windows API calls stripped out of lmdb-store. Would you be willing to try it out?
I have no idea where I can find a windows 7 test computer, VM, or CI server (suggestions welcome), so this is the only way I can think of to try out a fix. |
You can download official Windows 7, 8 and 10 test VMs here: https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ |
@mischnic Thank you, this is perfect for testing! (I don't know why I could never find this in my googling efforts, I did look for it). Anyway, I was indeed able to reproduce this issue and verify that my fix does indeed fix the issue! I will publish a new version (point release) with this fix. One other question: I assume you are using 64-bit windows 7, right? I ask because the VM I downloaded was 32-bit, and I could include some 32-bit binaries, but I assume that is exceedingly rare now, and from what I can tell, parcel only ships 64-bit prebuild binaries (in transformer-js) as well, so I don't know if there would be any point in including prebuild windows 32-bit binaries? |
@kriszyp Thanks a lot for helping with this issue! I've just tried your suggested fix but for me the issue remains with the error message unchanged. As you seem to have fixed it, it's probably just me getting something wrong in the process: In the console at the path of my project:
Strg+D (switch back to console outside node)
Could you elaborate on what is wrong here? |
@Biosphakus Are you still getting the error when you run/test |
@kriszyp Ah, I see. I get the error just when trying to run
I think I should wait for the final version then :) |
Ok, published v1.6.13 with this fix, so you should be able to upgrade or reinstall to upgrade to this version. |
Thank you very much! Unfortunately, it still does not work for me but the error message is different. Console
index.html
test.js
package.json
Maybe the error is on my end? |
|
It's working now!
This solved the build error ...
... and this helped me to make the Thanks again! |
I removed |
I was trying to migrate from the Parcel bundler to Parcel 2 (using it with npm), at the same time also updating npm and node.js to more current versions. Parcel seems to have installed correctly but Parcel commands abort with error. (For the time being, I have downgraded back to parcel-bundler but this shouldn't be the solution).
🐛 bug report
When trying to build, I get the following error (also with watch and serve commands):
Unlike in the bug reports here or here, I do not get a specific error, just the path of where it fails.
Unfortunately, I have no idea where to go from here and how to solve it. Removing the node_modules directory and re-installing everything doesn't seem to fix the error; also trying to use a fresh project like in this example doesn't help.
🎛 Configuration (.babelrc, package.json, cli command)
Steps I've been taking:
Initialising a fresh project and installing Parcel
My
package.json
looks like this:🤔 Expected Behavior
parcel build
should work.🌍 Environment
*) Node 14.16.1 was installed on Windows 7 using the workaround described here.
The text was updated successfully, but these errors were encountered: