golang-wasm icon indicating copy to clipboard operation
golang-wasm copied to clipboard

Missing path dashes on Windows

Open nunofaria007 opened this issue 2 years ago • 0 comments

Describe the bug: Missing path dashes on Windows

To reproduce: CRA 5.0.1 craco 7.0.0

Screenshots: image

image

Browser, OS, Go version and Golang-WASM version:

  • OS: Windows 11
  • Go: 1.19.3
  • Golang-WASM: 0.1.0

Additional context: Quick fix: Replacing \ with / const wasmSavePath = path.join(__dirname, 'wasm_exec.js').replace(/\\/g,"/");

import goWasm from \'${path.join(__dirname, \'bridge.js\').replace(/\\/g,"/")}'

nunofaria007 avatar Nov 14 '22 16:11 nunofaria007