ngrok-module icon indicating copy to clipboard operation
ngrok-module copied to clipboard

don't run on m1/ventura

Open drewsher opened this issue 2 years ago • 1 comments

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

Снимок экрана 2022-12-27 в 12 54 54

drewsher avatar Dec 27 '22 09:12 drewsher

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"
},

drewsher avatar Dec 27 '22 10:12 drewsher