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

npx typewriter init generates yml file, but not client (Windows) #318

Open
RapidOwl opened this issue Mar 13, 2024 · 2 comments
Open

npx typewriter init generates yml file, but not client (Windows) #318

RapidOwl opened this issue Mar 13, 2024 · 2 comments

Comments

@RapidOwl
Copy link

RapidOwl commented Mar 13, 2024

Hi folks! We've been using for Segment for several years, but never used Typewriter until now. I'm having a bit of trouble getting it set up.

TL;DR npx typewriter init generates the typewriter.yml, but no client.

I've tried this in Git Bash, Powershell and Command Prompt, but the only one that let you use arrow keys to select the options was the Command Prompt.

Dependency versions:

"@segment/analytics-next": "^1.66.0",
"typewriter": "^9.2.0"

Steps to reproduce:

  1. Install dependencies as per docs.
  2. Run npx typewriter init.
  3. Following it through, setting typewriter as the folder name, JavaScript as the language and the web SDK.
  4. Look in the project folder for the client.

Here's a screenshot of my terminal:
image

Here's a screenshot of my tracking plan (I'm able to receive events in the Segment debugger and generate violations with incorrect values):
image

Thanks for any help anyone can offer!

@JAjedvalmar
Copy link

hey @RapidOwl ! have you tried going through the advance settings from the npx typewriter init command? I remember we faced a similar issue and just defining those extra options in the yml file did the trick for the client to be generated, you can leave a bunch of those options like empty strings but i think it might help your case. Just to clarify, the advanced options appear after you've chosen the SDK (the quicktype.io options).

@cideM
Copy link

cideM commented Jun 7, 2024

I am seeing the same on Darwin using Typewriter 9.2.0.

Going through the code of the initCommand it doesn't look like anything actually creates any clients.

update also doesn't, but running just typewriter later on does generate some files.

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

No branches or pull requests

3 participants