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 installed qwik application in version 1.2.10 when the default"moduleResolution" in tsconfig.json value was set to "node". After migrating to V2 alpha, this does not work producing an error on any line that has import ... from '@qwik.dev/core'; where an error says:
TS2307: Cannot find module @qwik.dev/ core or its corresponding type declarations.
There are types at
.../node_modules/@qwik.dev/core/public.d.ts
, but this result could not be resolved under your current moduleResolution setting. Consider updating to node16, nodenext, or bundler
Updating moduleResolution value to Bundler fixes the problem, so I believe V2 migration tool should consider updating moduleResolution field to Bundler among other things it does.
@dmitry-stepanenko I'll comment out the "bundler' logic for now (just in case, until we'll gather more feedback if this can be turned on)
But now that the root cause is fixed, it should "just work"™ 🙂
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
I installed qwik application in version 1.2.10 when the default
"moduleResolution"
intsconfig.json
value was set to"node"
. After migrating to V2 alpha, this does not work producing an error on any line that hasimport ... from '@qwik.dev/core';
where an error says:Updating
moduleResolution
value toBundler
fixes the problem, so I believe V2 migration tool should consider updatingmoduleResolution
field toBundler
among other things it does.Reproduction
https://qwik.new/
Steps to reproduce
Not really sure, but this should be correct:
moduleResolution
is set tonode
intsconfig.json
.qwik migrate-v2
.import ... from '@qwik.dev/core';
.'@qwik.dev/core'
.System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: