yassinedoghri / astro-i18next

An astro integration of i18next + some utility components to help you translate your astro websites!
https://astro-i18next.yassinedoghri.com
MIT License
521 stars 37 forks source link

Failed to resolve entry for package "C:/Users/Visitor/Desktop/suka/minaglobal/src/..". The package may have incorrect main/module/exports specified in its package.json. File: C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/astro-i18next/src/components/Trans.astro #157

Open drshpackz opened 1 year ago

drshpackz commented 1 year ago

" error Failed to resolve entry for package "C:/Users/Visitor/Desktop/suka/minaglobal/src/..". The package may have incorrect main/module/exports specified in its package.json. File: C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/astro-i18next/src/components/Trans.astro Stacktrace: Error: Failed to resolve entry for package "C:/Users/Visitor/Desktop/suka/minaglobal/src/..". The package may have incorrect main/module/exports specified in its package.json. at packageEntryFailure (file:///C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/vite/dist/node/chunks/dep-24daf00c.js:23367:11) at resolvePackageEntry (file:///C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/vite/dist/node/chunks/dep-24daf00c.js:23364:5) at tryCleanFsResolve (file:///C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/vite/dist/node/chunks/dep-24daf00c.js:23034:28) at tryFsResolve (file:///C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/vite/dist/node/chunks/dep-24daf00c.js:22981:17) at Context.resolveId (file:///C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/vite/dist/node/chunks/dep-24daf00c.js:22837:24) at Object.resolveId (file:///C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/vite/dist/node/chunks/dep-24daf00c.js:42793:46) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Context.resolve (file:///C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/vite/dist/node/chunks/dep-24daf00c.js:42521:23) at async Context.resolveId (file:///C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/astro/dist/vite-plugin-config-alias/index.js:48:28) at async Object.resolveId (file:///C:/Users/Visitor/Desktop/suka/minaglobal/node_modules/vite/dist/node/chunks/dep-24daf00c.js:42793:32)

"

Did absolute everything like in documentation, but when Im trying to use "LanguageSelector" Im getting this error.

full code "--- import Container from "@components/container.astro"; import Link from "@components/ui/link.astro"; import Dropdown from "./dropdown.astro"; import { Astronav, MenuItems, MenuIcon } from "astro-navbar"; import i18next, { t } from "i18next"; import { LanguageSelector } from "astro-i18next/components";

const menuitems = [ { title: "Features", path: "#", children: [ { title: "Action", path: "/" }, { title: "Another action", path: "#" }, { title: "Dropdown Submenu", path: "#" }, { title: "404 Page", path: "/404" }, ], }, { title: "Pricing", path: "/pricing", }, { title: "About", path: "/about", }, { title: "Blog", path: "/blog", }, { title: "Contact", path: "/contact", }, ];

"