From 275dd0a889881c2f6f7c3dc6b6c5acd506692dc8 Mon Sep 17 00:00:00 2001 From: Mathieu Hofman Date: Tue, 26 Sep 2023 23:35:23 +0000 Subject: [PATCH] fix(solo): correct lookup of wallet-ui --- packages/solo/src/start.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/solo/src/start.js b/packages/solo/src/start.js index e9c6684e5f17..443397ec1f7b 100644 --- a/packages/solo/src/start.js +++ b/packages/solo/src/start.js @@ -483,8 +483,14 @@ const start = async (basedir, argv) => { const { 'agoric-wallet': { htmlBasedir = 'ui/build', deploy = [] } = {} } = JSON.parse(fs.readFileSync(pjs, 'utf-8')); + const htmlBasePath = String(htmlBasedir).replace( + /^\.\.\/\.\.\/node_modules\//, + '', + ); + const agWallet = path.dirname(pjs); - const agWalletHtml = path.resolve(agWallet, htmlBasedir); + const agWalletHtmlUrl = await importMetaResolve(htmlBasePath, packageUrl); + const agWalletHtml = new URL(agWalletHtmlUrl).pathname; let hostport; await Promise.all(