Closed 524c closed 1 year ago
Same error here!
I'm gonna look at the commits released in 0.27.15
to see if I find what broke it
If you find anything, share it!
I noticed the lack of exports in the package.json of the npm version:
{
"name": "flowbite-svelte",
"version": "0.27.15",
"description": "Flowbite components for Svelte",
"main": "index.js",
"author": {
"name": "Shinichi Okada",
"email": "connect@codewithshin.com",
"url": "https://blog.codewithshin.com"
},
"bugs": "https://github.com/themesberg/flowbite-svelte/issues",
"homepage": "https://flowbite-svelte.com/",
"license": "MIT",
"scripts": {
"dev": "vite dev",
"gen:props": "node ./node_modules/createprops/createprops.js",
"build": "vite build",
"package": "svelte-package",
"preview": "vite preview",
"test": "playwright test",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
},
"devDependencies": {
"@playwright/test": "^1.25.0",
"@sveltejs/adapter-vercel": "1.0.0-next.78",
"@sveltejs/kit": "1.0.0-next.484",
"@sveltejs/package": "1.0.0-next.3",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"autoprefixer": "^10.4.7",
"createprops": "^0.4.9",
"eslint": "^8.16.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-svelte3": "^4.0.0",
"mdsvex": "^0.10.6",
"mdsvexamples": "^0.3.2",
"postcss": "^8.4.14",
"postcss-load-config": "^4.0.1",
"prettier": "^2.6.2",
"prettier-plugin-svelte": "^2.7.0",
"prism-themes": "^1.9.0",
"svelte": "^3.44.0",
"svelte-check": "^2.7.1",
"svelte-meta-tags": "^2.6.3",
"svelte-preprocess": "^4.10.7",
"svelte2tsx": "^0.5.18",
"tailwindcss": "^3.1.5",
"tslib": "^2.3.1",
"typescript": "^4.7.4",
"vite": "^3.1.0"
},
"type": "module",
"keywords": [
"svelte",
"sveltekit",
"tailwindcss",
"flowbite",
"ui",
"accordion",
"alert",
"avatar",
"badge",
"breadcrumb",
"button-group",
"button",
"card",
"carousel",
"darkmode",
"dropdown",
"footer",
"forms",
"kbd",
"list group",
"mega menu",
"modal",
"navbar",
"pagination",
"progressbar",
"rating",
"sidebar",
"skeleton",
"spinner",
"table",
"tab",
"timeline",
"toast",
"tooltip",
"typography",
"video"
],
"repository": {
"type": "git",
"url": "https://github.com/themesberg/flowbite-svelte"
},
"dependencies": {
"@popperjs/core": "^2.11.6",
"classnames": "^2.3.2",
"flowbite": "^1.5.3"
},
"engines": {
"npm": ">=7.0.0",
"node": ">=16.0.0"
},
"contributors": [
"Zoltán Szőgyényi <zoltan@themesberg.com>",
"Robert Tanislav <robert@themesberg.com>",
"Victor Cordos <victor@themesberg.com>",
"Shinichi Okada <okada.shin@gmail.com>",
"Jakub Jagielka <jjagielka@gmail.com>"
]
}
I do have the same error. Updated from 0.27.8 to 0.27.15 and now I get the error:
Failed to resolve entry for package "flowbite-svelte". The package may have incorrect main/module/exports specified in its package.json.
System: OS: Mac OS Big Sur 11.7.1
It was my mistake. I'm sorry everyone. I run a wrong command to create a package. (I was working on a different project.) Please update it to the latest version and let me know.
npm i -D flowbite-svelte@latest
It was my mistake. I'm sorry everyone. I run a wrong command to create a package. (I was working on a different project.) Please update it to the latest version and let me know.
npm i -D flowbite-svelte@latest
Thanks for the fix 😁
Describe the bug
Failed to resolve entry for package "flowbite-svelte". The package may have incorrect main/module/exports specified in its package.json.
My code displays this error when trying to use version 0.27.15. With version 0.27.14 the error does not occur. Doing an initial investigation I noticed that package.json (NPM version), does not export any files in this version.
Reproduction
Update flowbite-svelte to version 0.27.15 and try to import.
Flowbite version and System Info