Closed seongs1024 closed 7 months ago
Could you try pinning intl-messageformat to 10.5.4?
"intl-messageformat": "10.5.4"
After added intl-messageformat
to dependencies:
Uncaught SyntaxError: The requested module '/node_modules/.pnpm/intl-messageformat@10.5.5/node_modules/intl-messageformat/lib/index.js?v=8e39c928' does not provide an export named 'default' (at import.mjs?v=8e39c928:1:8)
Do I give you correctly what you look for?
That's weird since pinning to 10.5.4 shouldn't cause a 10.5.5 error to occur. Could you show me the current package.json?
This is the one I created using your instructions and my proposed fix:
{
"name": "solid-dashboard",
"scripts": {
"dev": "solid-start dev",
"build": "solid-start build",
"start": "solid-start start",
"lint": "eslint --fix \"**/*.{ts,tsx,js,jsx}\""
},
"type": "module",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"autoprefixer": "^10.4.16",
"eslint": "^8.53.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-tailwindcss": "^3.13.0",
"postcss": "^8.4.31",
"prettier": "^3.0.3",
"solid-start-node": "^0.3.10",
"tailwindcss": "^3.3.5",
"typescript": "^5.2.2",
"vite": "^4.5.0"
},
"dependencies": {
"@kobalte/core": "^0.11.2",
"@solidjs/meta": "^0.29.1",
"@solidjs/router": "^0.8.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"solid-icons": "^1.1.0",
"solid-js": "^1.8.5",
"solid-start": "^0.3.10",
"tailwind-merge": "^2.0.0",
"tailwindcss-animate": "^1.0.7",
"intl-messageformat": "10.5.4"
},
"engines": {
"node": "18"
}
}
I also occur error when add accordion.
I also occur error when add accordion.
Did you try pinning "intl-messageformat": "10.5.4"
?
If you use SSR did you check this page from kobalte? https://kobalte.dev/docs/core/overview/ssr
If nothing helps could you please upload a simple project to reproduce this error on github/stackblitz?
Sorry for the late response
After trying pinning "intl-messageformat": "10.5.4",
the accordion works!
Thank you so much!
With latest solidjs template, components are not working with signals when the accordion is added to the Counter
Counts of the button doesn't increase when it is clicked.
And the accordion is still collapsed.
The error like:
Reproducible steps
src/components/Counter.tsx