-
-
Notifications
You must be signed in to change notification settings - Fork 778
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
Quasar (Vite) | Error on startup: "Hook is not a function" #3357
Comments
npm install -D unocss@0.56.1
|
Thanks for the comment... the problem starts from version
|
renovate bot
added a commit
to yjl9903/AnimeSpace
that referenced
this issue
Nov 21, 2023
[![Mend Renovate logo banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@unocss/reset](https://togithub.com/unocss/unocss) | [`^0.57.6` -> `^0.57.7`](https://renovatebot.com/diffs/npm/@unocss%2freset/0.57.6/0.57.7) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@unocss%2freset/0.57.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@unocss%2freset/0.57.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@unocss%2freset/0.57.6/0.57.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@unocss%2freset/0.57.6/0.57.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [unocss](https://togithub.com/unocss/unocss) | [`^0.57.6` -> `^0.57.7`](https://renovatebot.com/diffs/npm/unocss/0.57.6/0.57.7) | [![age](https://developer.mend.io/api/mc/badges/age/npm/unocss/0.57.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/unocss/0.57.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/unocss/0.57.6/0.57.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/unocss/0.57.6/0.57.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>unocss/unocss (@​unocss/reset)</summary> ### [`v0.57.7`](https://togithub.com/unocss/unocss/releases/tag/v0.57.7) [Compare Source](https://togithub.com/unocss/unocss/compare/v0.57.6...v0.57.7) ##### 🚀 Features - **core**: Preset support blocklist - by [@​chizukicn](https://togithub.com/chizukicn) in [unocss/unocss#3363 [<samp>(1ce68)</samp>](https://togithub.com/unocss/unocss/commit/1ce68380) ##### 🐞 Bug Fixes - **vite**: Compatible with legacy Vite on `transformIndexHtml`, fix [#​3357](https://togithub.com/unocss/unocss/issues/3357) - by [@​antfu](https://togithub.com/antfu) in [unocss/unocss#3357 [<samp>(49b34)</samp>](https://togithub.com/unocss/unocss/commit/49b34510) ##### [View changes on GitHub](https://togithub.com/unocss/unocss/compare/v0.57.6...v0.57.7) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/yjl9903/AnimeSpace). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UnoCSS version
v0.57.6
Describe the bug
Hello,
I have a problem with Unocss and Quasar, the Unocss plugins gives me and error related to the hook...
When starting the dev server ('quasar dev') this error appears.
After various tests I discovered that it's fault of the UnoCSS plugin which returns "undefined" instead of the "transform()" function, the error is caused by the "resolveHtmlTransforms" function that require the function "transform" inside the "transformIndexHtml" if is an object or just transformIndexHtml as function.
Currently I did a work around for my project... and it works now, but this for sure is not the correct way to fix this bug/error and idk how many other unknown issues it can cause...
Reproduction
To reproduce the problem, just run the official UnoCSS with Quasar example on GitHub via Stackblitz.
System Info
NodeJS: v18.18.0
NPM: v9.4.2
System: Windows 10/11
Browser: Edge & Chrome
Framework: Quasar CLI (with Vite)
Quasar: v2.14.0
Vue: v3.3.8
Validations
The text was updated successfully, but these errors were encountered: