RaySlash
RaySlash
SSolidJS
Created by RaySlash on 10/14/2024 in #support
Deploying a VITE+Solid app
That was a very weird behaviour where the dev server just works with no issues when I am not at all using context api. The same codebase with 0 changes when builds for deployment behaves entirely differently.
8 replies
SSolidJS
Created by RaySlash on 10/14/2024 in #support
Deploying a VITE+Solid app
yeah, ty for reply. did not see this. Well, this was a project I wanted to hand over but they asked for docker as they are hosting in their own servers. Anyways, I figured out the problem. It was the store which was not passed using Context API. I rewrote the definition using context api and it works perfectly fine now. Ty
8 replies
SSolidJS
Created by RaySlash on 10/14/2024 in #support
Deploying a VITE+Solid app
Ill add my package.json for reference as well:
{
"name": "vite-template-solid",
"version": "0.0.1",
"description": "WET",
"type": "module",
"scripts": {
"start": "bunx --bun vite",
"dev": "bunx --bun vite",
"build": "bunx --bun vite build",
"serve": "bunx --bun vite preview"
},
"license": "MIT",
"devDependencies": {
"@capacitor/cli": "^6.1.2",
"@types/bun": "^1.1.9",
"@types/node": "^20.16.5",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vite": "^5.4.5",
"vite-plugin-solid": "^2.10.2"
},
"dependencies": {
"@ark-ui/solid": "^3.12.0",
"@capacitor/android": "^6.1.2",
"@capacitor/camera": "^6.0.2",
"@capacitor/core": "^6.1.2",
"@capacitor/ios": "^6.1.2",
"@capacitor/preferences": "^6.0.2",
"@capacitor/share": "^6.0.2",
"@ionic/pwa-elements": "^3.3.0",
"@kobalte/core": "^0.13.6",
"@solidjs/router": "^0.14.5",
"autoprefixer": "^10.4.20",
"base64-arraybuffer": "^1.0.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"embla-carousel-solid": "^8.3.0",
"lucide-solid": "^0.407.0",
"postcss": "^8.4.45",
"solid-js": "^1.8.22",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.11",
"tailwindcss-animate": "^1.0.7"
}
}
{
"name": "vite-template-solid",
"version": "0.0.1",
"description": "WET",
"type": "module",
"scripts": {
"start": "bunx --bun vite",
"dev": "bunx --bun vite",
"build": "bunx --bun vite build",
"serve": "bunx --bun vite preview"
},
"license": "MIT",
"devDependencies": {
"@capacitor/cli": "^6.1.2",
"@types/bun": "^1.1.9",
"@types/node": "^20.16.5",
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vite": "^5.4.5",
"vite-plugin-solid": "^2.10.2"
},
"dependencies": {
"@ark-ui/solid": "^3.12.0",
"@capacitor/android": "^6.1.2",
"@capacitor/camera": "^6.0.2",
"@capacitor/core": "^6.1.2",
"@capacitor/ios": "^6.1.2",
"@capacitor/preferences": "^6.0.2",
"@capacitor/share": "^6.0.2",
"@ionic/pwa-elements": "^3.3.0",
"@kobalte/core": "^0.13.6",
"@solidjs/router": "^0.14.5",
"autoprefixer": "^10.4.20",
"base64-arraybuffer": "^1.0.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"embla-carousel-solid": "^8.3.0",
"lucide-solid": "^0.407.0",
"postcss": "^8.4.45",
"solid-js": "^1.8.22",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.11",
"tailwindcss-animate": "^1.0.7"
}
}
8 replies
SSolidJS
Created by RaySlash on 10/14/2024 in #support
Deploying a VITE+Solid app
Major problem is that bunx --bun vite preview does not serve the files properly even if I did bunx cap sync before previewing.
8 replies
SSolidJS
Created by RaySlash on 10/14/2024 in #support
Deploying a VITE+Solid app
Just to clarify that its not rehitting caches, I also tried opening this using a different browser and private window.
8 replies