Environment
$ node --version
v18.16.0
$ npm --version
9.5.1
$ tsc --version
Version 4.9.5
Steps
- Install typewriter
- Init Typewriter
npx typewriter init
- Select a Tracking Plan with event names with a colon as the first special character e.g.
something:something_something or something:something_something_something
- Summary should look like the following
Configuration Summary:
Name Value
────────────── ─────────────
Tracking Plans Something
Paths src/analytics
Language TypeScript
SDK analytics-js
- Run update
npx typewriter --update
Expectation vs. Reality
Expected:
The generated library
Reality
Received the following error
Generating files... Error!
Error: Cannot infer name for schema something:something_something
Additional
- If the colon is the second special character it works fine
- Issue only appears if the colon is the first special character
Environment
Steps
npx typewriter initsomething:something_somethingorsomething:something_something_somethingConfiguration Summary:
npx typewriter --updateExpectation vs. Reality
Expected:
The generated library
Reality
Received the following error
Additional