tailwind-config-viewer witch nuxt-bridge and ES issue
See original GitHub issueHi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch @nuxtjs/tailwindcss@4.2.1
for the project I’m working on.
Description: Import of whole directory is broken. Had to import server/index.js
Here is the diff that solved my problem:
diff --git a/node_modules/@nuxtjs/tailwindcss/dist/runtime/config-viewer.js b/node_modules/@nuxtjs/tailwindcss/dist/runtime/config-viewer.js
index d03355c..61b2192 100644
--- a/node_modules/@nuxtjs/tailwindcss/dist/runtime/config-viewer.js
+++ b/node_modules/@nuxtjs/tailwindcss/dist/runtime/config-viewer.js
@@ -1,5 +1,5 @@
import {withoutTrailingSlash, withTrailingSlash} from "ufo";
-import createServer from "tailwind-config-viewer/server";
+import createServer from "tailwind-config-viewer/server/index.js";
const server = createServer({
tailwindConfigProvider: () => process.nuxt ? process.nuxt.$config.tailwind.getConfig() : {}
}).asMiddleware();
This issue body was partially generated by patch-package.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:8 (1 by maintainers)
Top Results From Across the Web
tailwind-config-viewer witch nuxt-bridge and ES issue #389
Hi! Firstly, thanks for your work on this project! Today I used patch-package to patch @nuxtjs/tailwindcss@4.2.1 for the project I'm ...
Read more >vue.js - Purpose of 'content' in tailwind config
In Tailwind CSS v2.x, there was a preview feature named Just-in-Time engine witch you could used by enabling it in tailwind.config.js (mode: ...
Read more >how to install express in console Code Example
... Error initializing network controller: Error creating default "bridge" network: Failed to program NAT chain: ZONE_CONFLICT: 'docker0' already bound to a ...
Read more >Syntax - Tasty Web Development Treats
Full Stack Developers Wes Bos and Scott Tolinski dive deep into web development topics, explaining how they work and talking about their own...
Read more >Elixir Mix
Phoenix. In addition to host monitoring and an intuitive custom analytics platform, it provides insights into errors and performance problems. Thijs Cadier is ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Facing issue with tailwind-config-viewer [tailwindcss package] when applying nuxt bridge.
Having the same issue as well with nuxt-bridge