You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…2297)
* Update mod.rs
* Update mod.rs
* Support http protocol to obtain wasm file remotely
* Another stupid mistake...
* Fix errors caused by `{}`
* `bg` is missing
* RealPathSync cannot be used to get the parent directory of file under linux, so substring and lastIndexOf will be used to get the parent directory under linux
* Missing readFileSync
* Use asynchronous functions instead of synchronous functions.
* Change `includes` to switch-case. And change the synchronous file operation to asynchronous.
* Change to @RReverser suggestion.
* throw a proper Error instance
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
* Reuse url instance
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
* Use URL instead of previous backward writing.
* reuse unnecessary code.
Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
Describe the Bug
When I use the deno target, there will be an error that {name}_bg.wasm cannot be found
Steps to Reproduce
wasm-pack build --target=deno --out-name=deno_test
import { ... } from './pkg/deno_test.js'
Expected Behavior
Actual Behavior
error: Uncaught NotFound: 系统找不到指定的文件。 (os error 2)
(The system can not find the file specified)Additional Context
os: Windows10 19042.450 (20H2)
import.meta.url
: file:///C:/Users/soeur/CLionProjects/deno-deno_test/pkg/deno_test.jsconst file = new URL(import.meta.url).pathname
: /C:/Users/soeur/CLionProjects/deno-deno_test/pkg/deno_test.jsI think...
The reason for this problem is that in my case, os==windows but the separator is
/
instead of\
, and the first character of URL.pathname is/
The text was updated successfully, but these errors were encountered: