-
Notifications
You must be signed in to change notification settings - Fork 12
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
Vitest - Cannot find package '@monicon/runtime' #60
Comments
I don't know why vitest doesn't run Solutionmain.ts import { createApp } from "vue";
import Monicon from "@monicon/vue";
import App from "./App.vue";
import "./style.css";
const app = createApp(App);
app.use(Monicon);
app.mount("#app"); App.vue <script setup lang="ts"></script>
<template>
<Monicon name="mdi:home" />
<monicon name="mdi:home" />
</template> |
Yeah it's very odd only in the vitest do I actually encounter the issue. All works fine in dev and in production, just our CI runs a few vitests which I've disabled for now. |
I've tried Monicon with React Router v7.2.x and Vite and I got the same error. |
@oktaysenkan hello, im having the exact same error when running vitest, except im on vite react. my package versions
dev dependency
unit test import Monicon from "@monicon/react";
import { describe, it } from "vitest";
import { render } from "@testing-library/react";
describe("icon", () => {
it("icon", () => {
render(<Monicon name="lucide:edit" />);
});
}); |
I highlighted this issue in #54 but since that's now been closed I retested with monicon v1.1.1
When running the vitest vue-monicon-test I get the above error:
Environment:
npm: v10.7.0
node: v20.15.1
Here is the test project: https://github.com/timmaier/vue-monicon-test
To replicate clone project and run:
The text was updated successfully, but these errors were encountered: