Closed dcunited001 closed 4 months ago
When running npx astro dev --verbose
, at the very start, I'm getting the following. I'm looking into this now.
astro:cli --verbose flag enabled! Enabling: DEBUG="astro:*,vite:*" +0ms
astro:cli Tip: Set the DEBUG env variable directly for more control. Example: "DEBUG=astro:*,vite:* astro build". +0ms
astro:telemetry [notify] last notified on 1707958978111 +0ms
astro:Failed to load config with Node TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /data/ecto/typescript/astro/astro/examples/with-tailwindcss/node_modules/astro-tailwind-config-viewer/src/index.ts
astro:Failed to load config with Node at new NodeError (node:internal/errors:405:5)
astro:Failed to load config with Node at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
astro:Failed to load config with Node at defaultGetFormat (node:internal/modules/esm/get_format:124:36)
astro:Failed to load config with Node at defaultLoad (node:internal/modules/esm/load:89:20)
astro:Failed to load config with Node at nextLoad (node:internal/modules/esm/loader:163:28)
astro:Failed to load config with Node at ESMLoader.load (node:internal/modules/esm/loader:603:26)
astro:Failed to load config with Node at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
astro:Failed to load config with Node at new ModuleJob (node:internal/modules/esm/module_job:64:26)
astro:Failed to load config with Node at #createModuleJob (node:internal/modules/esm/loader:480:17)
astro:Failed to load config with Node at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34) +0ms
Awesome thank you! Will look into it today
I just published 2.0, let me know if it works for you
Everything works with the recent updates. 2.0.1 is working great. Thanks!
Hey, i've been running into this issue for awhile, but took a step away from this website's development.
I was able to reproduce this in the
with-tailwind
example in main branch of with-astro/astro. I entered that directory, renamedtailwind.config.cjs
=>tailwind.config.mjs
and ran:npm update
npx astro add astro-tailwind-config-viewer
npx astro dev
Here I get a 404 at http://localhost:4321/_tailwind and the following log. I think there may be a race condition involving vite, which is about where I got the last time I looked into this, but i can't remember exactly
Here's the diff of changes: