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

The icon is a black square (bug?) #16

Closed
ghost opened this issue Oct 29, 2022 · 5 comments
Closed

The icon is a black square (bug?) #16

ghost opened this issue Oct 29, 2022 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 29, 2022

image

App.tsx

import { Component } from "solid-js"
import * as TbIcon from 'solid-icons/tb'

export const App: Component = () => {
  return (
    <div>
      <TbIcon.TbRectangle size={50} />
    </div>
  )
}

tailwindcss config

module.exports = {
  content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx,css,md,mdx,html,json,scss}",
  ],
  darkMode: "class",
  theme: {
    extend: {},
  },
  plugins: [require("daisyui")],
};

dependencies

"devDependencies": {
    "autoprefixer": "^10.4.13",
    "daisyui": "^2.36.1",
    "postcss": "^8.4.18",
    "tailwindcss": "^3.2.1",
    "typescript": "^4.8.2",
    "vite": "^3.0.9",
    "vite-plugin-solid": "^2.3.0"
  },
"dependencies": {
    "solid-icons": "^1.0.3",
    "solid-js": "^1.5.1"
  }

Stack: create-tw (SolidJS, Typescript, Daisyui)

@ghost
Copy link
Author

ghost commented Oct 29, 2022

@ghost
Copy link
Author

ghost commented Oct 29, 2022

Solved by reducing solidjs version from 1.5.1 back to 1.5.0

@ghost
Copy link
Author

ghost commented Oct 30, 2022

Possible bug. Works fine at solidjs v1.5.0

@x64Bits
Copy link
Owner

x64Bits commented Oct 31, 2022

In the live example I couldn't reproduce the error with the versions you mentioned nor with the most recent ones of solid-js, you can check if updating solid-icons -> 1.0.4 helps to solve this? there were changes in solid-js recently and that changes broke the lib.

@ghost
Copy link
Author

ghost commented Nov 1, 2022

Yes, everything works fine now

Thank you, man!

@ghost ghost closed this as completed Nov 1, 2022
This issue was closed.
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