Swapnil Bandiwadekar
05/26/2022, 7:50 AM"@serverless-stack/cli": "^1.2.8",
"@serverless-stack/resources": "^1.2.8",
But no change. Still giving the same error.Harish Venkatesan
05/26/2022, 8:29 AMSwapnil Bandiwadekar
05/26/2022, 8:31 AMKlaus
05/26/2022, 10:10 AMprotocol c:
indicates an issue with path interpretation under WindowsSwapnil Bandiwadekar
05/26/2022, 10:12 AMKlaus
05/26/2022, 10:16 AMSwapnil Bandiwadekar
05/26/2022, 10:17 AMKlaus
05/26/2022, 10:32 AMSee, they use import() function on a string, that is the result of path.resolve() call. As you have already noticed, the import() function only works with file:// and data:// URLs, but path.resolve() only returns an absolute path (not a URL), which on Windows environment usually starts with the name of the local disk (e.g., C:).
while I haven't tried it, potentially just resolving the url via path.resolve, then checking if it contains "[letter]:" as indication for a windows path + rewriting that on with "file:///[letter;}" might work
further discussion here as wellthdxr
05/26/2022, 12:03 PM