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
This issue is related to #1718 but can be solved independently.
Problem
The user code is currently type-checked and built in four different contexts, each with its own errors and reporting.
See the table or graph below for details.
Context
Configured by
Where it reports errors
When it reports errors
VS Code
/tsconfig.json
Squiggly lines in the IDE
While the user is working on their code
SDK
.wasp/out/sdk/wasp/tsconfig.json
In the terminal, under [Wasp]
While building the SDK during wasp start and wasp build
Server
.wasp/out/server/tsconfig.json
In the terminal, under [Server]
While building the server during wasp build *
Client
.wasp/out/web-app/tsconfig.json
In the terminal, under [Webapp]
While building the client during wasp build
* The server does not do any type-checking during wasp compile. See #2458 for details. The web app does (last updated for version 0.15.2).
Solution
We should explore how to always process the user's code exclusively under the rules specified in their tsconfig.json. This is most likely doable with project references: #1827 (comment).
We must do this for all three of our framework's modules (SDK, client, server), and I believe project references are a solution in all three cases.
The text was updated successfully, but these errors were encountered:
Note
This issue is related to #1718 but can be solved independently.
Problem
The user code is currently type-checked and built in four different contexts, each with its own errors and reporting.
See the table or graph below for details.
/tsconfig.json
.wasp/out/sdk/wasp/tsconfig.json
[Wasp]
wasp start
andwasp build
.wasp/out/server/tsconfig.json
[Server]
wasp build
*.wasp/out/web-app/tsconfig.json
[Webapp]
wasp build
* The server does not do any type-checking during
wasp compile
. See #2458 for details. The web app does (last updated for version 0.15.2).Solution
We should explore how to always process the user's code exclusively under the rules specified in their
tsconfig.json
. This is most likely doable with project references: #1827 (comment).We must do this for all three of our framework's modules (SDK, client, server), and I believe project references are a solution in all three cases.
The text was updated successfully, but these errors were encountered: