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

Error when using esm.sh #13

Closed
christianmagill opened this issue May 2, 2024 · 6 comments
Closed

Error when using esm.sh #13

christianmagill opened this issue May 2, 2024 · 6 comments

Comments

@christianmagill
Copy link

I've recently over the past couple days started receiving an error when using Winden/Yabe Suil for Wordress

import { fluidExtractor, fluidCorePlugins, defaultThemeScreensInRems, defaultThemeFontSizeInRems } from 'https://esm.sh/fluid-tailwind?bundle-deps&external=fs';

Config Error SyntaxError: The requested module '/v135/tailwindcss@3.4.1/X-ZS9mcw/es2022/lib/corePlugins.js' does not provide an export named 'corePlugins'

It was previously working.

@barvian
Copy link
Owner

barvian commented May 2, 2024

Hmm, it looks like a regression in the last update. Could you try https://esm.sh/fluid-tailwind@0.1.6?bundle-deps&external=fs for now? I'll look into the cause and try to push a fix in the meantime 🤔

@christianmagill
Copy link
Author

Yes, reverting to the previous version fixes the issue.

@krstivoja
Copy link

+1

@barvian
Copy link
Owner

barvian commented May 8, 2024

I've opened an issue with ESM.sh because I can't seem to find what changed between versions to cause this breakage 🤔

@barvian
Copy link
Owner

barvian commented May 26, 2024

This should be fixed with v0.3.6. Here's a working StackBlitz that should be adaptable to Winden/Yabe Suil. Note the (currently undocumented) option passed to the plugin:

plugins: [
  fluid({
    checkExtractConfig: false
  })
]

This was necessary because it seems Tailwind Play ignores or overrides the extractor passed in (though it works without one).

Feel free to comment if you're still experiencing issues!

@barvian barvian closed this as completed May 26, 2024
@krstivoja
Copy link

Awesome stuff @barvian. Updated our documentation for Winden and I can confirm that this setup is working now: https://docs.dplugins.com/winden/fluid-tailwind/

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

3 participants