egoist / tailwindcss-icons

Use any icon (100,000+) from Iconify, for TailwindCSS
MIT License
875 stars 18 forks source link

Tailwind CSS: Can't resolve '@iconify/json/package.json' #9

Closed sinchang closed 1 year ago

sinchang commented 1 year ago

It will break the vs code Tailwind CSS IntelliSense

image

Here is the Tailwind config

const { iconsPlugin, getIconCollections } = require('@egoist/tailwindcss-icons')

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    './app/**/*.{js,ts,jsx,tsx}',
    './pages/**/*.{js,ts,jsx,tsx}',
    './components/**/*.{js,ts,jsx,tsx}',

    // Or if using `src` directory:
    './src/**/*.{js,ts,jsx,tsx}',
  ],
  theme: {
    extend: {},
  },
  plugins: [
    require('daisyui'),
    iconsPlugin({
      collections: getIconCollections(['radix-icons']),
    }),
  ],
}

And installed @iconify-json/radix-icons

image

After installing @iconify/json the problem is gone.

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 1.0.7 :tada:

The release is available on:

Your semantic-release bot :package::rocket: