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've tried defining the path with __dirname, process.cwd(), and various variations of going up and down directories to land back in the correct one.
Any idea what else I could be missing and/or doing wrong?!
EDIT: I'm also logging process.cwd() and __dirname right before this call and __dirname, for example, comes out to /opt/company/project/app, so a ../ brings one into the project root directoy, where a package.json most definitely is.. I see in the source code that its basically just concatenating package.json onto the path you pass into package_json_dir so I'm really not sure whats going wrong here.
The text was updated successfully, but these errors were encountered:
ndom91
changed the title
package.json not found in Dir, even though its definitely there..package.json not found
Jun 2, 2020
ndom91
changed the title
package.json not foundpackage.json not found in directory - only in prod
Jun 2, 2020
So in development, the package.json info loads fine, as does the image and the rest of the
about-window
.However, in prod I always get an error that
about-window: package.json is not found in specified directory path: /opt/company/project/
When I
cd /opt/company/project/
there is most definitely apackage.json
there.Here is my
openAboutWindow
config:I've tried defining the path with
__dirname
,process.cwd()
, and various variations of going up and down directories to land back in the correct one.Any idea what else I could be missing and/or doing wrong?!
EDIT: I'm also logging
process.cwd()
and__dirname
right before this call and__dirname
, for example, comes out to/opt/company/project/app
, so a../
brings one into the project root directoy, where a package.json most definitely is.. I see in the source code that its basically just concatenatingpackage.json
onto the path you pass intopackage_json_dir
so I'm really not sure whats going wrong here.The text was updated successfully, but these errors were encountered: