Skip to content
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

Renaming the root directory breaks the fresh project (tailwindcss) #2619

Open
byvide opened this issue Aug 13, 2024 · 1 comment
Open

Renaming the root directory breaks the fresh project (tailwindcss) #2619

byvide opened this issue Aug 13, 2024 · 1 comment

Comments

@byvide
Copy link

byvide commented Aug 13, 2024

PROBLEM

PS C:\...\NEW-NAME> deno task start
Task start deno run -A --watch=static/,routes/ dev.ts
Watcher Process started.
The manifest has been generated for 5 routes and 1 islands.
error: Uncaught (in promise) Error: Cannot find module '@alloc/quick-lru'
Require stack:
- C:\...\NEW-NAME\node_modules\.deno\t[email protected]\node_modules\tailwindcss\lib\lib\setupTrackingContext.js
- C:\...\NEW-NAME\node_modules\.deno\t[email protected]\node_modules\tailwindcss\lib\plugin.js
- C:\...\NEW-NAME\node_modules\.deno\t[email protected]\node_modules\tailwindcss\lib\index.js
- C:\...\NEW-NAME\node_modules\.deno\t[email protected]\node_modules\tailwindcss\lib\index.js
    at Function.Module._resolveFilename (node:module:608:15)
    at Function.Module._load (node:module:486:27)
    at Module.require (node:module:674:19)
    at require (node:module:785:16)
    at Object.<anonymous> (file:///C:/.../NEW-NAME/node_modules/.deno/[email protected]/node_modules/tailwindcss/lib/lib/setupTrackingContext.js:17:58)
    at Object.<anonymous> (file:///C:/.../NEW-NAME/node_modules/.deno/[email protected]/node_modules/tailwindcss/lib/lib/setupTrackingContext.js:168:4)
    at Module._compile (node:module:730:34)
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Object.Module._extensions..js (node:module:744:10)
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Function.Module._load (node:module:523:12)
Watcher Process failed. Restarting on file change...
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Function.Module._load (node:module:523:12)
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Function.Module._load (node:module:523:12)
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Function.Module._load (node:module:523:12)
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Function.Module._load (node:module:523:12)
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Function.Module._load (node:module:523:12)
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Object.Module._extensions..js (node:module:744:10)
    at Object.Module._extensions..js (node:module:744:10)
    at Module.load (node:module:655:32)
    at Function.Module._load (node:module:523:12)
Watcher Process failed. Restarting on file change...
  // untouched deno.json
  "imports": {
    "$fresh/": "https://deno.land/x/[email protected]/",
    "preact": "https://esm.sh/[email protected]",
    "preact/": "https://esm.sh/[email protected]/",
    "@preact/signals": "https://esm.sh/*@preact/[email protected]",
    "@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
    "tailwindcss": "npm:[email protected]",
    "tailwindcss/": "npm:/[email protected]/",
    "tailwindcss/plugin": "npm:/[email protected]/plugin.js",
    "$std/": "https://deno.land/[email protected]/"
  },

STEPS TO REPRODUCE

  1. create new fresh project
    1.1. deno run -A -r https://fresh.deno.dev
    1.2. select tailwindcss (and VS Code)
  2. run deno task start
    2.1 abort
  3. rename the root directory (in this case ORIGINAL-NAME => NEW-NAME)
  4. run deno task start
@mx237
Copy link

mx237 commented Sep 8, 2024

I didn't rename the project, but got the same error after updating from an old version. I deleted the node_modules folder and ran it again to fetch the npm modules from a clean state. Then the issue was resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants