Semantic-UI-CSS icon indicating copy to clipboard operation
Semantic-UI-CSS copied to clipboard

No Icons in semantic-ui-css

Open horodnicdragos opened this issue 7 years ago • 8 comments

Greetings! I have noticed that whenever using the Icon component with one of the icon name included by semantic-ui the font doesn't seem to be loaded.

I am using [email protected] with Meteor. When I replace the import from my main component to adding a link in my html file to the cdn css of semantic, the icons load just fine.

Did anyone else notice this behaviour?

horodnicdragos avatar Dec 17 '17 11:12 horodnicdragos

Yes I'm having the same problem. I'm also using [email protected].

carlosneves0 avatar Jan 04 '18 02:01 carlosneves0

Me too, did anyone have any luck fixing this?

will-isles avatar Jan 07 '18 22:01 will-isles

I'm using [email protected] and having the same issue

TheEcho avatar Jan 30 '18 10:01 TheEcho

Using [email protected] with Meteor 1.6.1 and, also, having this problem.

ghost avatar Feb 03 '18 10:02 ghost

Using semantic-ui-css v2.2.12 with semantic-ui-react and getting this same issue. Is there additional configuration needed?

arjunnayak avatar Feb 09 '18 02:02 arjunnayak

Our web application is hosted in a virtual directory so the url is for example: http://www.somewebsite.com/applicationname/

Now it's trying to load the fonts from http://www.somewebsite.com/dist instead of http://www.somewebsite.com/applicationname/dist

This was working fine in version 2.2.12.

MarcelWouters avatar Feb 22 '18 08:02 MarcelWouters

Hey guys. I figured out how to make the icons work on Meteor with React. You need to follow the instructions on Meteor 1.3+ and Usage. After that you can leave the definitions set on true in the custom.semantic.json file, or set them all on false while leaving the "icon": true. Because then you will import Icon from 'semantic-ui-css' and voilà: the items will show. Keep in mind that this package is only for the CSS part of Semantic. It will now replace Semantic-UI-React

ghost avatar Feb 23 '18 11:02 ghost

Having this issue in Next.JS/React.

Getting this error... ModuleParseError: Module parse failed: Unexpected character '' (1:0) You may need an appropriate loader to handle this file type. (Source code omitted for this binary file)

import React from 'react'
import { Header, Icon } from 'semantic-ui-react'
import 'semantic-ui-css/components/icon.css';
import '../styles/main.scss';


class socialMedia extends React.Component {
  render () {
    return (
        <div>
          <Nav />
          <h1>Find Us on Social Media</h1>
          <h2>
          <Icon.Group size='large'>
            <Icon name='instagram' />
            <Icon corner name='add' />
          </Icon.Group>
          Add on instagram
          </h2>
        </div>
    )
  }
}

export default socialMedia;


I don't believe it is an issue with the loaders because my nav bar has a similar import statement for the CSS for Semantic menu items and it also is using SCSS properly...

TeganLovesUnicorns avatar Feb 20 '19 08:02 TeganLovesUnicorns