I fixed an apparent bug in composing a file path on Windows OS 8.
######################
How to fix the apparent bug
######################
Open the file, pkg/functions_lib.js
Replace, line 162 with:
let __dirname = path.dirname(new URL(import.meta.url).pathname);
__dirname=__dirname.substr(1);
console.log(__dirname);
########################
How to make the apparent bug to occur
########################
Run
$ deno run --allow-read --allow-net --allow-env --unstable deno/server.ts
error: Uncaught Error: ファイル名、ディレクトリ名、またはボリューム ラベルの構文が間違っています。 (os error 123)
at processResponse (core.js:224:13)
at Object.jsonOpSync (core.js:248:12)
at Object.readDirSync (deno:cli/rt/30_fs.js:109:12)
at new Context (snapshot_preview1.ts:310:41)
at file:///O:/OneDrive/Git/IT/ProgramFiles_/rust/deno/ssvm-deno-starter-master/pkg/functions_lib.js:164:14
I fixed an apparent bug in composing a file path on Windows OS 8.
######################
How to fix the apparent bug
######################
Open the file, pkg/functions_lib.js
Replace, line 162 with:
########################
How to make the apparent bug to occur
########################
Run