-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Hello :)
First of all, Thank you for this awesome little and fun monorepo.
When that is mentioned, I have to address some issues I have been having when using it.
Issue 1:
Often, when I install it I get error in the root tsconfig file.
Cannot write file 'c:/client/dist/assets/index-BlOaMzOh.js' because it would overwrite input file.ts
Cannot write file 'c:/server/dist/client.js' because it would overwrite input file.ts
Cannot write file 'c:/server/dist/index.js' because it would overwrite input file.ts
Cannot write file 'c:/shared/dist/index.js' because it would overwrite input file.ts
Cannot write file 'c:/shared/dist/types/index.js' because it would overwrite input file.ts
JSON schema for the TypeScript compiler's configuration fileIssue 2:
I also run into issues when using the alias path, for some reason in the client i need to use "@shared /"but in the server i need to use "shared/",
"baseUrl": "./",
"paths": {
"@server/*": ["./server/src/*"],
"@client/*": ["./client/src/*"],
"@shared/*": ["./shared/src/*"]
},import type { ApiResponse } from "@shared/dist";this will give me this error:
Cannot find module '@shared/dist' or its corresponding type declarations.ts(2307)
⚠ Error (TS2307) |
Cannot find module
or its corresponding type declarations.It would be great to be able to use the "@" alias for both client and server.
issue 3:
Even by following the guide provided for Cloudflare located here: /single-origin/cloudflare, I cant make backend calls when deployed. it do not allow me me to do so.
I usually install with shadcn, tanstackrouter and biome.
{
"name": "bookingSys",
"version": "0.4.0",
"description": "A monorepo template built with Bun, Hono, Vite, and React",
"author": "Steve Simkins",
"license": "MIT",
"homepage": "https://github.com/stevedylandev/bhvr",
"packageManager": "bun@1.2.4",
"workspaces": [
"./server",
"./client",
"./shared"
],
"scripts": {
"dev": "turbo dev",
"dev:client": "turbo dev --filter=client",
"dev:server": "turbo dev --filter=server",
"build": "turbo build",
"build:client": "turbo build --filter=client",
"build:server": "turbo build --filter=server",
"lint": "biome lint .",
"type-check": "turbo type-check",
"test": "turbo test",
"postinstall": "turbo build --filter=shared --filter=server",
"format": "biome format . --write"
},
"keywords": [
"bun",
"hono",
"react",
"vite",
"monorepo",
"turbo"
],
"devDependencies": {
"@biomejs/biome": "^2.2.6",
"bun-types": "latest",
"turbo": "^2.5.5"
},
"peerDependencies": {
"typescript": "^5.7.3"
},
"dependencies": {
"hono": "^4.9.12"
}
}Metadata
Metadata
Assignees
Labels
No labels