Open anthumchris opened 4 years ago
+1:
✘ [ERROR] Could not resolve "fs"
node_modules/opus-stream-decoder/dist/opus-stream-decoder.mjs:9:1260:
9 │ ...ry){if(!nodeFS)nodeFS=require("fs");if(!nodePath)nodePath=requir...
╵ ~~~~
The package "fs" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "--platform=node" to do that, which will remove this error.
✘ [ERROR] Could not resolve "path"
node_modules/opus-stream-decoder/dist/opus-stream-decoder.mjs:9:1296:
9 │ ...f(!nodePath)nodePath=require("path");filename=nodePath["normaliz...
╵ ~~~~~~
The package "path" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "--platform=node" to do that, which will remove this error.
When referencing statically from a CDN like https://unpkg.com/opus-stream-decoder, the WASM file fetch fails because of the relative URL used to fetch.