Only for first request and after certain pre-steps the "os error 26" occurs (alpha version)

Open
#3,224 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
deno, tailwindcss, typescript
Domain
backend

Research direction

Start by reproducing the first-request failure with the reported deno run -A --watch=static/,routes/ dev.ts command after running deno install --allow-scripts; the stack trace points to routes/index.tsx and Fresh's file route loader. Compare the behavior before and after allowing Tailwind's install scripts. Done means the first request succeeds in dev mode after those steps.

Written by the indexing model from the issue text.

Description

upstream

The error in console as it is:


click to expand
Task dev deno run -A --watch=static/,routes/ dev.ts
Watcher Process started.

🍋 Fresh ready
Local: http://0.0.0.0:9000/ (http://localhost:9000/)

GET http://localhost:9000/
TypeError: Text file busy (os error 26)
at file:///home/nik/deno.dev/hft/hft_ui/routes/index.tsx:1:27
at async normalized (https://jsr.io/@fresh/core/2.0.0-alpha.58/src/fs_routes.ts:143:28)
at async normalized (https://jsr.io/@fresh/core/2.0.0-alpha.58/src/commands.ts:146:22)
at async https://jsr.io/@fresh/core/2.0.0-alpha.58/src/commands.ts:282:21
at async Context.fn (https://jsr.io/@fresh/core/2.0.0-alpha.58/src/middlewares/mod.ts:106:24)
at async Context.fn (https://jsr.io/@fresh/core/2.0.0-alpha.58/src/middlewares/mod.ts:106:24)
at async freshServeStaticFiles (https://jsr.io/@fresh/core/2.0.0-alpha.58/src/middlewares/static_files.ts:36:14)
at async Context.fn (https://jsr.io/@fresh/core/2.0.0-alpha.58/src/middlewares/mod.ts:106:24)
at async segmentMiddleware (https://jsr.io/@fresh/core/2.0.0-alpha.58/src/segments.ts:117:16)
at async fn (https://jsr.io/@fresh/core/2.0.0-alpha.58/src/middlewares/mod.ts:106:24)
at async https://jsr.io/@fresh/core/2.0.0-alpha.58/src/app.ts:429:24 {
code: "ERR_MODULE_NOT_FOUND"
}
GET http://localhost:9000/


Steps to reproduce:
  1. Initially there is no such problem
  2. Though the warning about post-install scripts related to tailwindcss is present
    • The warning in console as it is:
      click to expand
         Warning The following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed:
       ┠─ npm:@tailwindcss/[email protected]
       ┃
       ┠─ This may cause the packages to not work correctly.
       ┖─ To run lifecycle scripts, use the `--allow-scripts` flag with `deno install`:
          deno install --allow-scripts=npm:@tailwindcss/[email protected]
       Task dev deno run -A --watch=static/,routes/ dev.ts
       Watcher Process started.
      

      🍋 Fresh ready
      Local: http://0.0.0.0:9000/ (http://localhost:9000/)

      GET http://localhost:9000/
      GET http://localhost:9000/

  3. So I run deno install --allow-scripts
  4. No previous warning, but the stable mentioned earlier error for first ever and only request in dev mode is introduced
Dominant language
TypeScript
Stars
13.8k
Forks
757
Avg merge
3m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from freshframework/fresh

All issues in freshframework/fresh

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.