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

Failed to import - fluid-tailwind@0.1.7 (previous version works) #826

Open
barvian opened this issue May 8, 2024 · 3 comments
Open

Failed to import - fluid-tailwind@0.1.7 (previous version works) #826

barvian opened this issue May 8, 2024 · 3 comments
Labels
browser Not working in Browser

Comments

@barvian
Copy link

barvian commented May 8, 2024

Failing module

import * as fluid from "https://esm.sh/fluid-tailwind@0.1.7?bundle-deps&external=fs"

Error message

For some reason, ESM.sh doesn't seem to be bundling this dependency, so I get an error:

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

Additional info

The weird part is that 0.1.6 uses the same dependency, and it bundles without an error:

import * as fluid from "https://esm.sh/fluid-tailwind@0.1.6?bundle-deps&external=fs"

Any ideas?

@ije
Copy link
Member

ije commented May 10, 2024

thanks, i will look into it

@ije
Copy link
Member

ije commented May 10, 2024

a. esm.sh didn't transform tailwindcss/lib/corePlugins to esm correctly
b. in recent update i added a patch to improve the resolver with npm:package@version pattern of dependencies that may break fluid-tailwind@1.7 bundling

Screenshot 2024-05-10 at 18 34 37

i will fix it ASAP!

@krstivoja
Copy link

@ije Any update on this one?

Thanks for your help and awesome work

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

No branches or pull requests

3 participants