Skip to content

Vite warning: Module has been externalized for browser compatibility #20

@prium

Description

@prium

Hi,
First of all, your initiative has been very helpful to me. I have been trying long to reproduce something similar to the tailwind play CDN but without the DOM observant part and found yours. Thank you so much!

I encounter issues with several modules being externalized for browser compatibility when using Vite with a ReactJS project. This is causing errors when trying to access certain functionalities in client code. Below are the specific modules and the corresponding errors:

Screenshot 2024-08-15 at 10 48 07 AM

Steps to Reproduce:
Set up a Vite project with ReactJS.
Import the library:
import { createTailwindcss } from "@mhsdesign/jit-browser-tailwindcss";
Observe the errors in the console.

References for the VIte doc in the error:
Vite Troubleshooting Guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions