{"id":22202629,"url":"https://github.com/cherry/tailwind-fluid-cjs-repro","last_synced_at":"2025-09-09T18:33:14.371Z","repository":{"id":249406498,"uuid":"831432570","full_name":"Cherry/tailwind-fluid-cjs-repro","owner":"Cherry","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-20T14:39:42.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-19T07:11:32.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cherry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-20T14:30:06.000Z","updated_at":"2024-07-20T14:39:45.000Z","dependencies_parsed_at":"2024-07-20T16:09:15.842Z","dependency_job_id":null,"html_url":"https://github.com/Cherry/tailwind-fluid-cjs-repro","commit_stats":null,"previous_names":["cherry/tailwind-fluid-cjs-repro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cherry%2Ftailwind-fluid-cjs-repro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cherry%2Ftailwind-fluid-cjs-repro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cherry%2Ftailwind-fluid-cjs-repro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cherry%2Ftailwind-fluid-cjs-repro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cherry","download_url":"https://codeload.github.com/Cherry/tailwind-fluid-cjs-repro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245383119,"owners_count":20606265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T16:34:45.294Z","updated_at":"2025-03-25T01:46:52.454Z","avatar_url":"https://github.com/Cherry.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Issues using Fluid programatically\n\nIssue link: https://github.com/barvian/fluid-tailwind/issues/39\n\nWe have a workflow where we use Tailwind to generate a static \"theme\" output using `resolveConfig`. An example of this can be seen in the `generate-theme.js` file.\n\n- With Fluid disabled, this works without issue\n- However, if you uncomment line 1 in `tailwind.config.js` to enable Fluid, the `generate-theme.js` file will throw an error like so:\n\n```\nE:\\GitHub\\tailwind-fluid-cjs-repro\\node_modules\\fluid-tailwind\\dist\\index.js:8\nvar mapObject = require('map-obj');\n                ^\n\nError [ERR_REQUIRE_ESM]: require() of ES Module E:\\GitHub\\tailwind-fluid-cjs-repro\\node_modules\\map-obj\\index.js from E:\\GitHub\\tailwind-fluid-cjs-repro\\node_modules\\fluid-tailwind\\dist\\index.js not supported.\nInstead change the require of E:\\GitHub\\tailwind-fluid-cjs-repro\\node_modules\\map-obj\\index.js in E:\\GitHub\\tailwind-fluid-cjs-repro\\node_modules\\fluid-tailwind\\dist\\index.js to a dynamic import() which is available in all CommonJS modules.\n    at Object.\u003canonymous\u003e (E:\\GitHub\\tailwind-fluid-cjs-repro\\node_modules\\fluid-tailwind\\dist\\index.js:8:17) {\n  code: 'ERR_REQUIRE_ESM'\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherry%2Ftailwind-fluid-cjs-repro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcherry%2Ftailwind-fluid-cjs-repro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherry%2Ftailwind-fluid-cjs-repro/lists"}