-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: Is a directory (os error 21) #130
Comments
Can you run |
And can you also run |
> ls
README.md http observable rpc subscription tsconfig.json unstableDontImportMe
adapters jsr.json package.json shared tsconfig.benchmark.json turbo.json
entrypoints.script.ts node_modules rollup.config.ts src tsconfig.build.json unstable-core-do-not-import
> cat jsr.json
{
"name": "@trpc/server",
"description": "The tRPC server library",
"version": "0.0.6",
"exports": {
".": "./src/@trpc/server/index.ts",
"./adapters/aws-lambda": "./src/adapters/aws-lambda/index.ts",
"./adapters/express": "./src/adapters/express.ts",
"./adapters/fastify": "./src/adapters/fastify/index.ts",
"./adapters/fetch": "./src/adapters/fetch/index.ts",
"./adapters/next": "./src/adapters/next.ts",
"./adapters/node-http/content-type/form-data": "./src/adapters/node-http/content-type/form-data/index.ts",
"./adapters/node-http/content-type/json": "./src/adapters/node-http/content-type/json/index.ts",
"./adapters/node-http": "./src/adapters/node-http/index.ts",
"./adapters/standalone": "./src/adapters/standalone.ts",
"./adapters/ws": "./src/adapters/ws.ts",
"./http": "./src/http.ts",
"./observable": "./src/observable/index.ts",
"./rpc": "./src/rpc.ts",
"./shared": "./src/shared.ts",
"./unstable-core-do-not-import": "./src/unstable-core-do-not-import.ts"
}
}
> cat package.json
{
"name": "@trpc/server",
"version": "10.45.1",
"description": "The tRPC server library",
"author": "KATT",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.mjs",
"typings": "dist/index.d.ts",
"homepage": "https://trpc.io",
"repository": {
"type": "git",
"url": "git+https://github.com/trpc/trpc.git",
"directory": "packages/server"
},
"scripts": {
"build": "rollup --config rollup.config.ts --configPlugin rollup-plugin-swc3",
"dev": "pnpm build --watch",
"codegen-entrypoints": "tsx entrypoints.script.ts",
"benchmark": "tsc --project tsconfig.benchmark.json",
"lint": "eslint --cache --ext \".js,.ts,.tsx\" --ignore-path ../../.gitignore src",
"ts-watch": "tsc --watch"
},
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"default": "./dist/index.js"
},
"./adapters/aws-lambda": {
"import": "./dist/adapters/aws-lambda/index.mjs",
"require": "./dist/adapters/aws-lambda/index.js",
"default": "./dist/adapters/aws-lambda/index.js"
},
"./adapters/express": {
"import": "./dist/adapters/express.mjs",
"require": "./dist/adapters/express.js",
"default": "./dist/adapters/express.js"
},
"./adapters/fastify": {
"import": "./dist/adapters/fastify/index.mjs",
"require": "./dist/adapters/fastify/index.js",
"default": "./dist/adapters/fastify/index.js"
},
"./adapters/fetch": {
"import": "./dist/adapters/fetch/index.mjs",
"require": "./dist/adapters/fetch/index.js",
"default": "./dist/adapters/fetch/index.js"
},
"./adapters/next": {
"import": "./dist/adapters/next.mjs",
"require": "./dist/adapters/next.js",
"default": "./dist/adapters/next.js"
},
"./adapters/node-http/content-type/form-data": {
"import": "./dist/adapters/node-http/content-type/form-data/index.mjs",
"require": "./dist/adapters/node-http/content-type/form-data/index.js",
"default": "./dist/adapters/node-http/content-type/form-data/index.js"
},
"./adapters/node-http/content-type/json": {
"import": "./dist/adapters/node-http/content-type/json/index.mjs",
"require": "./dist/adapters/node-http/content-type/json/index.js",
"default": "./dist/adapters/node-http/content-type/json/index.js"
},
"./adapters/node-http": {
"import": "./dist/adapters/node-http/index.mjs",
"require": "./dist/adapters/node-http/index.js",
"default": "./dist/adapters/node-http/index.js"
},
"./adapters/standalone": {
"import": "./dist/adapters/standalone.mjs",
"require": "./dist/adapters/standalone.js",
"default": "./dist/adapters/standalone.js"
},
"./adapters/ws": {
"import": "./dist/adapters/ws.mjs",
"require": "./dist/adapters/ws.js",
"default": "./dist/adapters/ws.js"
},
"./http": {
"import": "./dist/http.mjs",
"require": "./dist/http.js",
"default": "./dist/http.js"
},
"./observable": {
"import": "./dist/observable/index.mjs",
"require": "./dist/observable/index.js",
"default": "./dist/observable/index.js"
},
"./rpc": {
"import": "./dist/rpc.mjs",
"require": "./dist/rpc.js",
"default": "./dist/rpc.js"
},
"./shared": {
"import": "./dist/shared.mjs",
"require": "./dist/shared.js",
"default": "./dist/shared.js"
},
"./unstable-core-do-not-import": {
"import": "./dist/unstable-core-do-not-import.mjs",
"require": "./dist/unstable-core-do-not-import.js",
"default": "./dist/unstable-core-do-not-import.js"
}
},
"files": [
"dist",
"src",
"README.md",
"package.json",
"adapters",
"http",
"observable",
"rpc",
"shared",
"unstable-core-do-not-import",
"!**/*.test.*"
],
"publishConfig": {
"access": "public"
},
"dependencies": {},
"peerDependencies": {},
"devDependencies": {
"@fastify/websocket": "^7.1.2",
"@tanstack/react-query": "^5.0.0",
"@types/aws-lambda": "^8.10.97",
"@types/express": "^4.17.17",
"@types/hash-sum": "^1.0.0",
"@types/node": "^20.10.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@types/ws": "^8.2.0",
"@web3-storage/multipart-parser": "^1.0.0",
"aws-lambda": "^1.0.7",
"devalue": "^4.0.0",
"eslint": "^8.56.0",
"express": "^4.17.1",
"fastify": "^4.13.0",
"fastify-plugin": "^4.5.0",
"hash-sum": "^2.0.0",
"myzod": "^1.3.1",
"next": "^14.0.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rollup": "^4.9.5",
"superjson": "^1.12.4",
"superstruct": "^1.0.0",
"tslib": "^2.5.0",
"tsx": "^4.0.0",
"typescript": "^5.3.3",
"valibot": "^0.29.0",
"vitest": "^1.2.2",
"ws": "^8.0.0",
"yup": "^1.0.0",
"zod": "^3.0.0"
},
"funding": [
"https://trpc.io/sponsor"
]
}
> deno publish -Ldebug
see https://app.warp.dev/block/UtSXtXFYHKh0qZXcqCGzrl |
To reproduce, what repo / branch should I check out? Is it https://github.com/trpc/trpc/tree/pub-jsr and then |
Yea, although i made some changes since the original post (mostly regarding imports) |
This might be fixed or at least provide more information in the error in the latest release. |
This is the current error. I know where the bug is, and I think I can get this fixed today. The problem is that |
Hey, sorry for kinda bailing out after submission. Just had other stuff to do 😅 Thanks for sorting it out, I also saw one of you left a comment on the PR over at trpc, I'll see if I can check it out again over the weekend and make a new attempt at publishing! |
Bug fix: denoland/deno#22800 |
This was fixed by denoland/deno#22800 |
Understand this is vague, but I have no clue where to look, happy to provide any details you require to help out
The text was updated successfully, but these errors were encountered: