-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
TypeError [Error]: pluginContext.vueCompilerOptions.plugins is not iterable #17469
Comments
Hi @Unfaehig! 👋 It looks like you provided an invalid or unsupported reproduction URL. Without a proper reproduction, your issue will have to get closed. Thank you for your collaboration. 👏 |
I just tried setting up a project and got the exact same problem. |
I got the similiar problem. I have tried with nodejs v18, 20, 22. .d88888b.
d88P" "Y88b
888 888
888 888 888 888 8888b. .d8888b 8888b. 888d888
888 888 888 888 "88b 88K "88b 888P"
888 Y8b 888 888 888 .d888888 "Y8888b. .d888888 888
Y88b.Y8b88P Y88b 888 888 888 X88 888 888 888
"Y888888" "Y88888 "Y888888 88888P' "Y888888 888
Y8b
» Reported at............ 8/30/2024 10:31:17 AM
» App dir................ /home/hotman/repos/Tester/quasar-project
» App URL................ http://localhost:9000/
http://192.168.1.33:9000/
» Dev mode............... spa
» Pkg quasar............. v2.16.9
» Pkg @quasar/app-vite... v1.9.5
» Browser target......... es2019|edge88|firefox78|chrome87|safari13.1
App • Opening default browser at http://localhost:9000/
node:internal/event_target:1062
process.nextTick(() => { throw err; });
^
TypeError [Error]: pluginContext.vueCompilerOptions.plugins is not iterable
at createPlugins (/home/hotman/repos/Tester/quasar-project/node_modules/@vue/language-core/lib/plugins.js:48:45)
at Object.createVueLanguagePlugin (/home/hotman/repos/Tester/quasar-project/node_modules/@vue/language-core/lib/languagePlugin.js:52:49)
at exports.getLanguagePlugins (/home/hotman/repos/Tester/quasar-project/node_modules/vite-plugin-checker/dist/cjs/checkers/vueTsc/languagePlugins.cjs:30:33)
at Object.apply (/home/hotman/repos/Tester/quasar-project/node_modules/@volar/typescript/lib/node/proxyCreateProgram.js:50:33)
at getBuilderCreationParameters (/home/hotman/repos/Tester/quasar-project/node_modules/vite-plugin-checker/dist/cjs/checkers/vueTsc/typescript-vue-tsc/lib/typescript.js:128533:18)
at createSemanticDiagnosticsBuilderProgram (/home/hotman/repos/Tester/quasar-project/node_modules/vite-plugin-checker/dist/cjs/checkers/vueTsc/typescript-vue-tsc/lib/typescript.js:129027:74)
at createNewProgram (/home/hotman/repos/Tester/quasar-project/node_modules/vite-plugin-checker/dist/cjs/checkers/vueTsc/typescript-vue-tsc/lib/typescript.js:131080:22)
at synchronizeProgram (/home/hotman/repos/Tester/quasar-project/node_modules/vite-plugin-checker/dist/cjs/checkers/vueTsc/typescript-vue-tsc/lib/typescript.js:131054:7)
at Object.createWatchProgram (/home/hotman/repos/Tester/quasar-project/node_modules/vite-plugin-checker/dist/cjs/checkers/vueTsc/typescript-vue-tsc/lib/typescript.js:130960:3)
at Object.configureServer (/home/hotman/repos/Tester/quasar-project/node_modules/vite-plugin-checker/dist/cjs/checkers/vueTsc/main.js:128:13)
Emitted 'error' event on Worker instance at:
at [kOnErrorMessage] (node:internal/worker:314:10)
at [kOnMessage] (node:internal/worker:325:37)
at MessagePort.<anonymous> (node:internal/worker:225:57)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:786:20)
at exports.emitMessage (node:internal/per_context/messageport:23:28)
Node.js v18.19.1
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
|
+1 |
vuejs/language-tools#4755 |
I was able to run with this solution
|
+1 |
Using 2.0.29 specifically due to: quasarframework/quasar#17469 (comment)
Using 2.0.29 specifically due to: quasarframework/quasar#17469 (comment)
I have the same problem on Windows 10, but not on Ubuntu Linux, even if package.json has same versions of packages used. |
I have the same problem . |
Same here |
I have the same problem . |
We used the workaround for this 2 days ago in create-quasar. So, new projects should not be affected. If you create a new project and still see the issue, then make sure to include For the existing projects, please don't upgrade vue-tsc to anything above Unless the upstream issue gets resolved, or something new happens, please don't respond to this issue. This issue is not related to Quasar, there is nothing else we can do, thanks for your understanding. |
I'm facing the same problem. The funny thing is, I created the project on another computer, and it worked fine, but on both my work and home computers, I'm having issues. I copied the package.json from that other machine, and it worked, but the versions are all the same—only the order of the dependencies is different. It's been a headache so far! |
It worked here! |
same issue in |
@FelixNumworks I think you may have been confused, the issue you've linked is not related to this issue. See #17416 for the relevant issue, we will address that shortly. |
This issue was fixed at https://github.com/fi3ework/vite-plugin-checker/releases/tag/vite-plugin-checker%400.8.0. Everyone should be able to update |
@yusufkandemir I still get the error with vite-plugin-checker |
@adamdehaven Thank you for the response, but when I do that I get this, which makes no sense to me: With that error the website doesn't even show for like 2 minutes and then it shows and reloads again after some js is executed. Some parts work and others do not. This is so weird. I did not update any package that should influence nuxt or vue and I somehow got a few warnings and errors now, that I can not fix. But it worked for the warning, yeah... Spent so much time trying to fix this, but in the end I have to give up and disable typescript. I will try to add the plugin manually to vite, to have more control over it. (adding it manually didn't fix it) |
@jonasfroeller You can try to update nuxt to v3.13.2 and vue-tsc to 2.1.6, that's works for my case. |
@gaomingzhao666 Thank you for the suggestion, but that doesn't fix that weird vue-tsc error. I had to disable ts... That was the only fix. |
That's not a fix 🤔 |
@adamdehaven right, but I can not code without doing that. |
Try setting vite-plugin-checker and vue-tsc to specific version:
Also, for my case disabling Hybrid Mode for Vue Extension, is VS Code, helped with weird syntax errors or no intellisense in code. Go to settings and search for |
What happened?
I tried to use the CLI to generate a starting project using TypeScript support. Sadly this is craching, if you try to start it in dev mode you get following error:
TypeError [Error]: pluginContext.vueCompilerOptions.plugins is not iterable
. You can start the server when removing thevueTsc
option invite-plugin-checker
plugin of thequasar.config.ts
file. However it feels not right!What did you expect to happen?
Just runs out of the box to test framework :)
Reproduction URL
How to reproduce?
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite)
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
Additional context
No response
The text was updated successfully, but these errors were encountered: