-
Notifications
You must be signed in to change notification settings - Fork 607
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
Docker fails with Cannot set property 'tempCompareConfigFileName' of undefined #849
Comments
#679 references the same error message, but I don't think it is relevant as I'm using a plain JSON file as my config. |
@n1313 Thanks for the bug report! Just to be sure there are no environmental issues, could you run this sanity check? (You can run from your Desktop directory or wherever you like.)
This will create a directory called The log will be somewhat long -- but you should find these lines in there somewhere...
Please let me know if this works for you. If it runs ok then work backwards from there to try to figure out what the issue may be. Please let me know how that sanity check goes! |
@garris Thank you for your response! The sanity check works, here's the output (I ran
Does this mean the problem is in my config? |
After comparing the outputs I have noticed that docker is called differently in my code and in sanity check repo: Sanity check:
Mine (note the second "--config=backstop.config.json" in the end of arguments list):
This led me to the source of the problem: |
Thank you for catching this issue! A known issue also exists where config parameters are duplicated in the docker command. I would like to address this as soon as possible. Until then are you able to simply change your config name to the default |
@garris yep, I'll do that. Thanks for confirming the issue! |
fixed with v3.5.14 |
My config file is generated by a node script (backstop.config.js) and I'm still seeing this error with 3.7.0 |
can you please post a gist of your terminal output? |
The sanity test worked for me btw. |
Woah, stop the presses. I just tested the current version and had no problem running it...
|
Hey! Before running, please |
I was in the folder where the config lives. It ran with the alt config. I'll have to figure out what it doesn't like about my config. |
Can you tell me what's wrong with this config? I've compared it to the alt and see no difference except values. https://gist.github.com/spacecowboyian/b8c21f0a3e966fb31b61027f9e59de76 |
Hmmmm, Does it work if you copy the alt file with a different name? If so, maybe just use that and change props in place until it breaks or works. |
I figured it out. My export was a promise. I assume once I resolve that all will be well :) It would be nice if the config param, when used with docker, could accept an object like it does otherwise but I think I understand why it needs a file for docker. |
Actually, I have wanted the config interface to accept promises for a long time. (If implemented I'd expect it to work in docker as well). Would love it if someone added that feature. But until that time -- you are absolutely correct. Accepts cheers! |
I ended up just having it write out the backstop.json first with every run and pointing to that. It'll be good to have that as a record of the last run anyway. We're using it in a UI Component monorepo and we wanted the ability to test a single package or the whole repo. Thanks so much for your help. |
My backstop.config.json:
Console output:
Backstop installed globally, v3.5.10, docker image v3.5.10, on OSX. This config works as expected when I run it without
--docker
. Could you please help me debug this?The text was updated successfully, but these errors were encountered: