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
I debugged the vite bundle locally and looks like a bump of tsconfck package from 3.0.1 to 3.0.2 causes a failure in qwik apps with multiple tsconfigs.
In my setup I use tsconfig.json along with tsconfig.spec.json and tsconfig.app.json. Basically, tsconfig.json has "references": [{"path": "tsconfig.spec.json"}] in it.
Before the recent update everything was working fine. See steps to reproduce below for additional details
I propose reverting the tsconfck bump until the reason of this regression is fixed
To reproduce a regression with tsconfck bump from 3.0.1 to 3.0.2, pull the repo referenced above
Run npm run build.client and notice an error
Run npm run revert-tsconfck-changes that will patch vite's chunk to revert the tsconfck package bump (see patches/vite+5.1.1.patch for the patch diff)
Run npm run build.client and notice everything builds fine
Try running rm -rf node_modules/vite && npm i && npm run build.client, you'll see the error is back
To reproduce the bug from scratch:
Run npm create qwik@latest (getting v1.4.4 as of now with vite@5.1.1)
Run npm run build.client and see everything is ok
Add "references": [{"path": "tsconfig.spec.json"}], to the tsconfig.json
Run echo '{ "extends": "./tsconfig.json" }' > tsconfig.spec.json (a simple tsconfig file without any configurations)
Run npm run build.client, you'll get silent exit
Comment out tsconfigPaths in vite.config.ts (now you have only plugins: [qwikCity(), qwikVite()],)
Run npm run build.client and see an error
Install "vite": "5.1.0-beta.7" and try building again, everything is ok this time
Upon further debugging I discarded changes related to tsconfck in node_modules/vite/dist/node/chunks/dep-G1t0FnMB.js (chunk name might be different depending on the vite version) and can confirm it addresses the problem
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
I debugged the
vite
bundle locally and looks like a bump oftsconfck
package from 3.0.1 to 3.0.2 causes a failure in qwik apps with multiple tsconfigs.In my setup I use
tsconfig.json
along withtsconfig.spec.json
andtsconfig.app.json
. Basically,tsconfig.json
has"references": [{"path": "tsconfig.spec.json"}]
in it.Before the recent update everything was working fine. See steps to reproduce below for additional details
I propose reverting the tsconfck bump until the reason of this regression is fixed
Reproduction
https://github.com/dmitry-stepanenko/qwik-vite-tsconfck-bump-error
Steps to reproduce
To reproduce a regression with tsconfck bump from 3.0.1 to 3.0.2, pull the repo referenced above
npm run build.client
and notice an errornpm run revert-tsconfck-changes
that will patch vite's chunk to revert thetsconfck
package bump (seepatches/vite+5.1.1.patch
for the patch diff)npm run build.client
and notice everything builds finerm -rf node_modules/vite && npm i && npm run build.client
, you'll see the error is backTo reproduce the bug from scratch:
npm create qwik@latest
(getting v1.4.4 as of now withvite@5.1.1
)npm run build.client
and see everything is ok"references": [{"path": "tsconfig.spec.json"}],
to thetsconfig.json
echo '{ "extends": "./tsconfig.json" }' > tsconfig.spec.json
(a simple tsconfig file without any configurations)npm run build.client
, you'll get silent exittsconfigPaths
invite.config.ts
(now you have onlyplugins: [qwikCity(), qwikVite()],
)npm run build.client
and see an error"vite": "5.1.0-beta.7"
and try building again, everything is ok this timeUpon further debugging I discarded changes related to
tsconfck
innode_modules/vite/dist/node/chunks/dep-G1t0FnMB.js
(chunk name might be different depending on the vite version) and can confirm it addresses the problemSystem Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: