question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tailwind-config-viewer witch nuxt-bridge and ES issue

See original GitHub issue

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 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:open
  • Created 2 years ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
sarmedrizvicommented, Oct 14, 2021

Facing issue with tailwind-config-viewer [tailwindcss package] when applying nuxt bridge.

Screenshot 2021-10-15 at 3 13 18 AM
1reaction
pencilcheckcommented, Mar 6, 2022

Having the same issue as well with nuxt-bridge

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found