-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Bug in Vue v3.2.32/33 | Build Runtime Error | Cannot read properties of undefined (reading 'accessCache') #13154
Comments
I just noticed the same. This is related to vuejs/core#5417 Relevant Log Output in debug mode:
|
And its not vite related, same behaviour in webpack |
Every https://stackoverflow.com/a/22345808
|
@MilosPaunovic that's not the solution, that's the problem in this case. the latest patch version breaks the build. |
Ohh, sorry, ignore my comment from above in that case. What you could to is downgrade Vue version manually until they release a fix with a |
Same problem here, thanks for the fix instruction. Fixing the npm version of vue to |
I have the same problem on prod, but on localhost quasar dev and quasar build works fine - no error @MilosPaunovic thank you, downgrade to vue 3.2.31 solved the problem. |
I have the same problem! thank you!! |
May be related going from 3.2.31 to 3.2.32 also using Quasar with VUE CLI. Ripple.js:65 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'config') |
This happens to UMD as well. All input elements are not rendered. Error in console:
To fix, specify the specific ver: <script src="https://cdn.jsdelivr.net/npm/vue@3.2.31/dist/vue.global.prod.js"></script> |
Patch version of Vue, |
Also getting this even after upgrading to 3.2.33 (Qusar + Vite) |
Worked for me. Thank you. I got the error using webpack. |
With the
But I like to propose to another temporary solution:
I'm have created a PR proposing this change. There is still the issue with |
There is still the issue with vue 3.2.34 |
"vue": "^3.2.35" still not solved. |
Same problem here using the v-ripple directive. If I remove it the script setup works fine. Vue: 3.2.36 |
I'm still using Vue |
😢 |
We too with the problem 'undefined (reading 'accessCache')' |
I've started from the repro repo provided. From This issue can be closed. The people having issues with |
@rstoenescu Why was this issue closed? The issue is clearly NOT fixed. I made a reproducible repo, created via quasar-cli, where I simply modified the MainLayout.vue file with a q-list and q-item elements with the https://github.com/NGPixel/broken-quasar-vripple-proof Your own docs provide examples with the v-ripple on q-item elements so I would expect this to work just fine with the latest version, but it does not. |
@rstoenescu I second that it's premature to close this issue as it continues to persist for me as well with vue 3.2.32-3.2.37. |
The original issue isn't about v-ripple. Using the reproduction repo provided, the issue of this issue is fixed from 3.2.33 onwards. Also, in the reproduction repo v-ripple does work. But v-ripple wasn't mentioned once, q-input in a build version was the issue. If you have a different issue, then please do make a reproduction repo and create a separate issue such that that error can be investigated/fixed. I stand by the statement that the logged issue, is fixed in 3.2.33 and higher. As for the v-ripple issue (that is not part of the original logged issue), a workaround is posted in this response. |
@bartduisters Other tickets that were opened mentioning v-ripple were closed as duplicates of this issue. Apart from the other linked tickets, ripple is mentioned 42 times in this issue, just not in the initial report description. The other tickets should be re-opened if they truly aren't duplicates, even though it's the same exact error. |
Then please add the workaround to the docs so that we don't have to go through 10s of various issues that incorrectly links to each other. Anyone trying to use v-ripple with vue 3 composition API will run into this issue and it's really not obvious what the solution is, even after going through all these posts. For anyone landing on this issue and have the v-ripple problem when using <script setup>
import { useQuasar } from 'quasar'
const $q = useQuasar()
defineExpose({ $q }) |
To me it's clear that this is not a duplicate (since this issue is fixed, and the v-ripple clearly isn't), at the point the others were closed in favor of this one, it was perhaps not that clear. I looked into the repro repo and the logged issue and wasn't able to reproduce in 3.2.33 - hence, my suggestion to close. I'm in favor of having a clear new issue with a repro repo for the v-ripple issue, which has the workaround mentioned on top. That way people don't have to scroll, the workaround is on the relevant issue right on top. As for the docs, you can pull request the workaround at the spot you think it fits. Then the team with merge permission can merge. Indeed as @NGPixel mentions, the workaround provided by @Trinovantes here works for the v-ripple issue until a real fix is available. |
Opened #13732 for the v-ripple issue. |
What happened?
As a developer that uses quasar using the Vite plugin
When building a project that contains a quasar input component
And previewing the build using
npm run preview
Then Vue throws an error
Cannot read properties of undefined (reading 'accessCache')
You can find a codesandbox with the final build assets here:
https://codesandbox.io/s/frosty-thunder-gxs0pt?file=/index.html
What did you expect to happen?
No error to happen in the final build
Reproduction URL
https://github.com/waldi/quasar-access-cache-bug
How to reproduce?
You can use the reproduction repo or create a new project from scratch:
q-input
component:npm run build && npm run preview
Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
Quasar CLI Commands/Configuration (@quasar/cli | @quasar/app-webpack | @quasar/app-vite), Components (quasar), SPA Mode
Platforms/Browsers
No response
Quasar info output
No response
Relevant log output
Additional context
This bug seems to be related to the Vue version.
If you fix the vue version in the
package.json
to:"vue": "3.2.25"
then everything works fine.The text was updated successfully, but these errors were encountered: