nuxt-modules / ngrok

ngrok exposes your localhost to the world for easy testing and sharing! No need to mess with DNS or deploy just to have others test out your changes
https://ngrok.nuxtjs.org/
68 stars 13 forks source link

don't run on m1/ventura #27

Open drewsher opened 1 year ago

drewsher commented 1 year ago

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 commented 1 year ago

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