Others have encountered this problem too [but no solution, I fixed it]: https://www.reddit.com/r/monerosupport/comments/15gol3w/encountering_url_parse_error_with_monero/?rdt=47049
Various problems based on [Monoro-JavaScript]? why? The simplest case test is used here [running based on Node V18 or above --- the following error will definitely be reported, but running based on Node V16 or below is no problem! 】
import moneroJS from "monero-javascript";
(async () => {
let wallet = await moneroJS.createWalletKeys(
{
networkType: moneroJS.MoneroNetworkType.MAINNET
});
console.log(wallet);
})();
For this reason, the root cause of the following problems is the problem of your Node version [Currently it is recommended to use Node 16 version --- this version is the most stable] Node 18 and above versions, many libraries are not compatible [There is still a lot of way to go in the future ....]
Error message: node_modules\monero-javascript\dist\monero_wallet_keys.js:9
Encountering URL Parse Error with Monero JavaScript Library – Has Anyone Else Faced This?
I've encountered an error while working with the Monero JavaScript library, which can be found at [this GitHub link](https://github.com/monero-ecosystem/monero-javascript). The error message I'm receiving is:
```
错误提示:Error posting message to MoneroWebWorker.js; is it copied to the app's build directory (e.g. in the root)?
错误提示:TypeError [Error]: Failed to parse URL from /home/p/Documents/Html test/node_modules/monero-javascript/dist/monero_wallet_full.wasm
```
Has anyone come across this issue before? I can provide the code I'm using if that would help.