Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't run on m1/ventura #27

Open
drewsher opened this issue Dec 27, 2022 · 1 comment
Open

don't run on m1/ventura #27

drewsher opened this issue Dec 27, 2022 · 1 comment
Labels
question Further information is requested

Comments

@drewsher
Copy link

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 drewsher added the question Further information is requested label Dec 27, 2022
@drewsher
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant