-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 📌Fixed type error "Cannot find module 'rollup/parseAst'" #242
fix: 📌Fixed type error "Cannot find module 'rollup/parseAst'" #242
Conversation
@madogiwa0124 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review! I see, so the If there is no conflict, I would like to change the If you want to modify all the sample code and documentation at once, that's fine 😄. |
I think it's necessary to make changes to the code that is crucial to the context of the chapters all at once, as partially updating it might confuse the readers due to the significance of the context. |
Thanks for the comment !
I get what you're saying. Here are the commits I tried to correct the I confirmed that "Cannot find module 'rollup/parseAst'" does not occur locally. The difference is a bit large, but what do you think ? 👀 If it looks OK, I will update the Pull Request with the contents of this commit 😄. As an addendum, regarding the above commit, The Because it is created in vite v4.2 series and in that case, nlx [email protected]
Packages: +1
+
Progress: resolved 1, reused 0, downloaded 1, added 1, done
✔ Project name: … sample-vite
✔ Select a framework: › Vanilla
✔ Select a variant: › TypeScript
Scaffolding project in sample-vite...
Done. Now run:
cd sample-vite
pnpm install
pnpm run dev
$ cat sample-vite/tsconfig.json
{
"compilerOptions": {
"target": "ESNext",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true
},
"include": ["src"]
} |
Yes, your are right.
Oh! You were already working on it (?) |
As shown below, a type error TS2307 occurs in `[email protected]`. ```sh $ cd book/impls/10_minimum_example/070_sfc_compiler2 $ pnpm install $ pnpm tsc --noEmit ../../../../node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/index.d.ts:6:41 - error TS2307: Cannot find module 'rollup/parseAst' or its corresponding type declarations. 6 export { parseAst, parseAstAsync } from 'rollup/parseAst'; ~~~~~~~~~~~~~~~~~ Found 1 error in ../../../../node_modules/.pnpm/[email protected]_@[email protected]/node_modules/vite/dist/node/index.d.ts:6 ``` Therefore, changed `moduleResolution` to `bundler`.
da351f4
to
ece9620
Compare
I tried to correct the moduleResolution in all the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I truly appreciate it from the bottom of my heart. Thank you. I'll merge now!
fixed: https://github.com/Ubugeeei/chibivue/issues/237
As shown below, a type error TS2307 occurs in
[email protected]
.Therefore, changed
moduleResolution
tobundler
.