You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on the crud feature, I've noticed that if you declare two cruds with the same name, the analyzer will allow it.
The generator then fails due to "duplicate file draft file names" which is just a symptom.
Internal Wasp error (bug in compiler):
FileDraft destination paths are not unique! Duplicates include:
Left (RelFile "server/src/crud/tasks.ts" NoPrefix)
Left (RelFile "server/src/routes/crud/tasks.ts" NoPrefix)
Left (RelFile "web-app/src/crud/tasks.ts" NoPrefix)
CallStack (from HasCallStack):
error, called at src/Wasp/Generator/WriteFileDrafts.hs:72:48 in waspc-0.10.6-inplace:Wasp.Generator.WriteFileDrafts
We should ideally handle this head on by not allowing duplicate declaration names.
The text was updated successfully, but these errors were encountered:
While working on the
crud
feature, I've noticed that if you declare twocrud
s with the same name, the analyzer will allow it.The generator then fails due to "duplicate file draft file names" which is just a symptom.
We should ideally handle this head on by not allowing duplicate declaration names.
The text was updated successfully, but these errors were encountered: