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

Use lightningCSS in browser shows error : failed to load resource fs #676

Open
nitipit opened this issue Feb 11, 2024 · 0 comments
Open

Comments

@nitipit
Copy link

nitipit commented Feb 11, 2024

Use code from tutorial here
https://lightningcss.dev/docs.html#from-deno-or-in-browser

Shows error since it's try to load module which doesn't exist in browser environment
https://cdn.jsdelivr.net/npm/fs/+esm

Remove fs when import in browser could help ?

Screenshot from 2024-02-12 00-44-22

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

1 participant