nstaldev / nstal

3 stars 2 forks source link

Errors running example in FF and Chrome #16

Open perpil opened 1 year ago

perpil commented 1 year ago

When attempting to run the example, it connects but hangs and errors when running the first command. Is there some mismatch with the website and the repo code?

image image

Here are my raw notes on the getting started experience:

  1. Started on nstal.dev and needed to really poke around to get started and find the repo. Even the README in the repo doesn’t totally explain what to do. A little on my background, I am primarily a java backend developer. Although I’ve written an API in node, and something in javascript, I don’t have much experience with the node/react ecosystem.

  2. Started in GitHub Codespaces for safety

  3. When I run npm install, it lists 8 vulnerabilities (6 moderate, 1 high, 1 critical), worth updating dependencies if possible.

  4. Found the packages/cli directory: nstal/packages/cli

  5. Ran the nstal command seen on the website, but couldn’t proceed in codespaces due to inability to specify host other than localhost on nstal.dev (this is expected).

  6. Installed locally yarn npm run lerna:bootstrap cd packages/cli npm run build

  7. In Firefox 110 and Chrome 111 on Mac Ventura, it connected but hung running the first command: https://nstal.dev/nstallers/setup-nstal-with-nextjs-and-mdx

phbernard commented 1 year ago

It's fixed at last!

More precisely, I made https://nstal.dev/nstallers/create-nextjs-app-with-tailwind-support runnable again. Th nstaller you tried (https://nstal.dev/nstallers/setup-nstal-with-nextjs-and-mdx) needs a few more changes since the NextJS CLI has changed. So this issue should remain open for a bit.

perpil commented 1 year ago

Awesome, thanks. I like the new command that doesn’t require you to clone the repo first to get nstal running, much simpler! I tried the tutorial but again got stuck on the first step, it received the command but didn’t seem to proceed:

❯ npx nstal@latest connect ssifqazj4G
Listening on port 8790...
Client authenticated
Run command "npx create-next-app --eslint --js my-nstal-and-mdx-blog" from directory /Users/david/yeet

I let it run for some time and didn’t see any network activity. Here are my node versions:

❯ npx --version
8.19.3
❯ node --version
v18.13.0
perpil commented 1 year ago

I stand corrected, looks like I read what you said, but clicked the second link instead of the first 🤦🏻. I tried again using the first link and it worked.