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

Tausende Icon-Chunks #1070

Closed
patrickhilker opened this issue Dec 11, 2024 · 3 comments · Fixed by #1077
Closed

Tausende Icon-Chunks #1070

patrickhilker opened this issue Dec 11, 2024 · 3 comments · Fixed by #1077
Assignees
Labels

Comments

@patrickhilker
Copy link
Member

Bei der Nutzung von Vite werden zigtausende Chunks nachgeladen:

import {
  createReactComponent
} from "/node_modules/.vite/deps/chunk-LS7IO25J.js?v=192b9744";

// .yarn/__virtual__/@tabler-icons-react-virtual-ff17f89ca1/5/.yarn/berry/cache/@tabler-icons-react-npm-3.24.0-4b7aece67b-10c0.zip/node_modules/@tabler/icons-react/dist/esm/icons/IconHexagonNumber4Filled.mjs
var IconHexagonNumber4Filled = createReactComponent("filled", "hexagon-number-4-filled", "IconHexagonNumber4Filled", [["path", { "d": "M10.425 1.414a3.33 3.33 0 0 1 3.216 0l6.775 3.995c.067 .04 .127 .084 .18 .133l.008 .007l.107 .076a3.223 3.223 0 0 1 1.284 2.39l.005 .203v7.284c0 1.175 -.643 2.256 -1.623 2.793l-6.804 4.302c-.98 .538 -2.166 .538 -3.2 -.032l-6.695 -4.237a3.226 3.226 0 0 1 -1.678 -2.826v-7.285a3.21 3.21 0 0 1 1.65 -2.808zm3.575 5.586a1 1 0 0 0 -.993 .883l-.007 .117v3h-2v-3l-.007 -.117a1 1 0 0 0 -1.986 0l-.007 .117v3l.005 .15a2 2 0 0 0 1.838 1.844l.157 .006h2v3l.007 .117a1 1 0 0 0 1.986 0l.007 -.117v-8l-.007 -.117a1 1 0 0 0 -.993 -.883z", "key": "svg-0" }]]);

export {
  IconHexagonNumber4Filled
};
/*! Bundled license information:

@tabler/icons-react/dist/esm/icons/IconHexagonNumber4Filled.mjs:
  (**
   * @license @tabler/icons-react v3.24.0 - MIT
   *
   * This source code is licensed under the MIT license.
   * See the LICENSE file in the root directory of this source tree.
   *)
*/
//# sourceMappingURL=chunk-AHWQVCV5.js.map
@patrickhilker
Copy link
Member Author

Habe das Problem mit aktuellem @tabler/icons-react auch in einem anderen Projekt. Scheint also nicht explizit an Flow zu liegen.

@thueske
Copy link
Member

thueske commented Dec 15, 2024

tabler/tabler-icons#1233 (comment)

vite-config:

  resolve: {
    alias: {
      // https://github.com/tabler/tabler-icons/issues/1233#issuecomment-2428245119
      "@tabler/icons-react": "@tabler/icons-react/dist/esm/icons/index.mjs",
    },
  },

@Lisa18289 Lisa18289 self-assigned this Dec 16, 2024
@Lisa18289 Lisa18289 linked a pull request Dec 16, 2024 that will close this issue
@mfal
Copy link
Member

mfal commented Dec 17, 2024

Thanks @thueske . We added this config to our project, but probably you also need to set this in your own.

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

Successfully merging a pull request may close this issue.

4 participants