Namespace not found #887
Unanswered
UltraWelfare
asked this question in
Q&A
Replies: 1 comment
-
Found the issue quite quickly :P The tsconfig searches for the However the command generates the file in
and it's all working right now. I used laravel installer with breeze and react (Inertia). Would be nice to include it somewhere in the docs:) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After creating some data classes and using
php artisan typescript:transform
to make the TS types, I'm unable to use them.The generated file is as follows:
When trying to use this namespace
App.Actions.Customer
typescript errors that the namespace cannot be found.Exporting the declared namespace fixes the problem, I wonder why though the namespace isn't exported from the transformer in the first place?
It feels wrong to touch generated code and tedious to do it each time you make changes
Beta Was this translation helpful? Give feedback.
All reactions