Luke Stock
06/01/2022, 9:48 AMnpx sst start
I get the following error:
Preparing your SST app
X [ERROR] The entry point "C:\\...\\sst-demo-notes-app\\stacks\\index.js" cannot be marked as external
Build failed with 1 error:
error: The entry point "C:\\...\\sst-demo-notes-app\\stacks\\index.js" cannot be marked as external
This previously worked before the commit to "Update SST to v1".
Any help will be greatly appreciated.
LukeKlaus
06/01/2022, 6:11 PMthdxr
06/01/2022, 6:11 PMKlaus
06/01/2022, 6:12 PMif(root.indexOf("C:\\")==0){
entry = entry.replace(root+"\\", "./")
entry = entry.replace("\\", "/")
}
but then the process fails again laterKlaus
06/01/2022, 6:14 PMKlaus
06/01/2022, 6:28 PMnode_modules\@serverless-stack\cli\assets\debug-stack\bin\index.mjs
Klaus
06/01/2022, 6:32 PMKlaus
06/01/2022, 6:32 PMthdxr
06/01/2022, 6:41 PMthdxr
06/01/2022, 6:41 PMthdxr
06/01/2022, 6:42 PMnew URL(path).href
or something, it's annoying but I've had to find all places where we dynamically import so it works on windowsthdxr
06/01/2022, 6:42 PMKlaus
06/01/2022, 6:51 PMthdxr
06/01/2022, 11:22 PMthdxr
06/01/2022, 11:22 PMthdxr
06/01/2022, 11:22 PM// Validate the `debugStack` option in user SST app's index
const handler = await import(
url.pathToFileURL(appBuildLibPath + "/index.js").href
);
thdxr
06/02/2022, 12:04 AMsst update snapshot
and see if that worksKlaus
06/02/2022, 12:49 AMnpx sst update
Klaus
06/02/2022, 12:50 AMKlaus
06/02/2022, 1:04 AMLuke Stock
06/08/2022, 9:12 AM