Closed allanbowe closed 3 years ago
This appears to be happening because of the code on either of these two lines:
https://github.com/sasjs/cli/blob/main/src/commands/web/web.ts#L327 https://github.com/sasjs/cli/blob/main/src/commands/web/web.ts#L347
We should probably add a check that throws an error and stops execution if a path is not found.
:tada: This issue has been resolved in version 2.38.8 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
When an asset is not found, an unhelpful message is displayed
To reproduce:
npm i
andnpm i -g @sasjs/cli
"streamWeb": true,
in the viya target of the sasjsconfig.json filenpm run build
. (note - without this step, the command runs successfully, which is also a problem - it should fail ifwebSourcePath
is not found andstreamWeb
is true)dist/index.html
:<link rel="icon" type="image/svg+xml" href=logo_horiz.svg >
sasjs compile
Result:
Expected - when a file cannot be made streamable, we should provide additional information to help the developer debug, such as an excerpt of the statement, or the link that cannot be found.