typed-ember / glint

TypeScript powered tooling for Glimmer templates
https://typed-ember.gitbook.io/glint
MIT License
110 stars 51 forks source link

auto-glint-nocheck script fails because it could not find a source file #595

Open nelstrom opened 1 year ago

nelstrom commented 1 year ago

When I follow the sample usage as documented here, I get an error:

% npx -p @glint/scripts auto-glint-nocheck '{app,tests}/**/*.{ts,hbs,gts}'
⠙ Checking app/app.ts...Could not find source file: '~code/my-app/app/application-error/template.ts'.

The process exits without making any changes.

It's true that there is no app/application-error/template.ts file in my application. I do have the following files:

My application uses the --pods layout. I wonder if that's why the script is breaking?

dfreeman commented 1 year ago

We've used Glint (and the auto-glint-nocheck script) with a variety of pods-based apps, so I don't think that should be the issue here.

Are you able to share a project that demonstrates the issue? Either if your app is open source, or a small reproduction in a fresh repo that fails with the same error, would be super helpful for tracking down what's going wrong here.