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

material-ui does not work well in fresh,component can be displayed, but after click the style missing #2762

Open
uuice opened this issue Nov 14, 2024 · 0 comments

Comments

@uuice
Copy link

uuice commented Nov 14, 2024

material-ui does not work well in fresh
The component can be displayed
but after click the style missing and js reports an error

Code: https://github.com/uuice/web-fresh
Demo: https://uuice-web-fresh-86.deno.dev/

image image image
{
  "lock": false,
  "tasks": {
    "check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
    "cli": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -",
    "manifest": "deno task cli manifest $(pwd)",
    "start": "deno run --env-file=.dev.env -A --watch=static/,routes/ dev.ts",
    "build": "deno run --env-file=.prod.env -A dev.ts build",
    "preview": "deno run --env-file=.preview.env -A main.ts",
    "update": "deno run -A -r https://fresh.deno.dev/update ."
  },
  "lint": { "rules": { "tags": ["fresh", "recommended"] } },
  "fmt": {
    "options": {
      "useTabs": false,
      "lineWidth": 80,
      "indentWidth": 4,
      "semiColons": false,
      "singleQuote": true,
      "proseWrap": "preserve"
    }
  },
  "exclude": ["**/_fresh/*"],
  "imports": {
    "$fresh/": "https://deno.land/x/[email protected]/",
    "kysely": "npm:kysely@^0.27.4",
    "pg": "npm:pg@^8.13.1",
    "pg-pool": "npm:pg-pool@^3.7.0",
    "@preact/signals": "https://esm.sh/*@preact/[email protected]",
    "@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
    "tailwindcss": "npm:[email protected]",
    "tailwindcss/": "npm:/[email protected]/",
    "tailwindcss/plugin": "npm:/[email protected]/plugin.js",
    "$std/": "https://deno.land/[email protected]/",
    "preact": "https://esm.sh/[email protected]",
    "preact/": "https://esm.sh/[email protected]/",
    "react": "https://esm.sh/[email protected]/compat",
    "react/": "https://esm.sh/[email protected]/compat/",
    "react/jsx-runtime": "https://esm.sh/[email protected]/compat/jsx-runtime",
    "react-dom/test-utils": "https://esm.sh/[email protected]/test-utils",
    "react-dom": "https://esm.sh/[email protected]/compat",
    "react-dom/": "https://esm.sh/[email protected]/compat/",
    "@emotion/react": "https://esm.sh/@emotion/react@^11.13.3?alias=react:preact/compat,react/:preact/compat/,react-dom:preact/compat,react-dom/:preact/compat/,react/jsx-runtime:preact/compat/jsx-runtime,@types/react:preact/compat&external=preact&[email protected]",
    "@emotion/styled": "https://esm.sh/@emotion/styled@^11.13.0?alias=react:preact/compat,react/:preact/compat/,react-dom:preact/compat,react-dom/:preact/compat/,react/jsx-runtime:preact/compat/jsx-runtime,@types/react:preact/compat&external=preact&[email protected]",
    "@mui/material": "https://esm.sh/@mui/material@^6.1.7?alias=react:preact/compat,react/:preact/compat/,react-dom:preact/compat,react-dom/:preact/compat/,react/jsx-runtime:preact/compat/jsx-runtime,@types/react:preact/compat&external=preact&[email protected]",
    "@mui/styled-engine-sc": "https://esm.sh/@mui/styled-engine-sc@^6.1.7?alias=react:preact/compat,react/:preact/compat/,react-dom:preact/compat,react-dom/:preact/compat/,react/jsx-runtime:preact/compat/jsx-runtime,@types/react:preact/compat&external=preact&[email protected]",
    "styled-components": "https://esm.sh/styled-components@^6.1.13?alias=react:preact/compat,react/:preact/compat/,react-dom:preact/compat,react-dom/:preact/compat/,react/jsx-runtime:preact/compat/jsx-runtime,@types/react:preact/compat&external=preact&[email protected]"
  },
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "preact"
  },
  "nodeModulesDir": "auto"
}
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