ngrok-module
ngrok-module copied to clipboard
don't run on m1/ventura
Good afternoon, on my new computer (m1 / ventura) the module refuses to work. I don’t know how this is possible, but on the old one everything is fine (intel / high siera). The problem is that when calling ngrok asynchronous functions nuxt stops and nothing further happens
nuxt.hook("listen", async (_server, {port}) => {
if (options.authtoken) {
await ngrok2.authtoken(options.authtoken); // here
}
url = await ngrok2.connect({...options, addr: port}); // and here
nuxt.options.publicRuntimeConfig.ngrok = {url};
nuxt.options.cli.badgeMessages.push(`Public URL: ${chalk2.underline.yellow(url)}`);
});
If you remove these calls, then the nuxt will start, but in this case the module will not work either.
I am attaching a screenshot of the terminal, nothing happens after launch

I updated the main dependency in the module and everything worked. Please update ngrok to the latest version
"dependencies": {
"chalk": "^4.1.0",
"defu": "^2.0.4",
- "ngrok": "^3.3.0",
+ "ngrok": "^4.3.3"
},