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 have a default path being stored that usings path.join to create the path, when getting the path back from the config, it is not formatted correctly. E.G.
exporttypeConfig={dataPath: stringcampaignsDB: stringport: number}constdataPath=getDataDir()// this gives a real path like - 'home/becks/Dev/app/packages/server/data'constcampaignsDB=path.join(dataPath,'db','campaigns.csv')constconf=newConf<Config>({defaults: {
dataPath,
campaignsDB,port: 3000,},configName: 'alis',})exportconstgetCampaignsDB=(): string=>conf.get('campaignsDB')console.log(campaignsDB)=='home/becks/Dev/app/packages/server/data/db/campaigns.csv'console.log(getCampaignsDB())=='home/becks/Dev/app/packages/server/datadb/campaigns.csv'// notice the missing slash !
I'm not sure how or why this is happening, but it took me a good 20 minutes to realize that it was this lib causing the issue. Any ideas on what it might be?
Thanks.
The text was updated successfully, but these errors were encountered:
I have a default path being stored that usings path.join to create the path, when getting the path back from the config, it is not formatted correctly. E.G.
I'm not sure how or why this is happening, but it took me a good 20 minutes to realize that it was this lib causing the issue. Any ideas on what it might be?
Thanks.
The text was updated successfully, but these errors were encountered: