Using font awesome
See original GitHub issueI’ve upgraded to 0.2.0 which I think was supposed to fix this.
Importing bootstrap works just fine.
# index.js
import 'font-awesome/css/font-awesome.css'
Compiling... [0/0]
Failed to compile.
Error in ./~/font-awesome/fonts/fontawesome-webfont.eot?v=4.6.3
Module parse failed: /Users/spencer/code/day-by-day-webapp/node_modules/font-awesome/fonts/fontawesome-webfont.eot?v=4.6.3 Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '�' (1:0)
@ ./~/react-scripts/~/css-loader!./~/react-scripts/~/postcss-loader!./~/font-awesome/css/font-awesome.min.css 6:243-294
Error in ./~/font-awesome/fonts/fontawesome-webfont.woff2?v=4.6.3
Module parse failed: /Users/spencer/code/day-by-day-webapp/node_modules/font-awesome/fonts/fontawesome-webfont.woff2?v=4.6.3 Unexpected character '' (1:4)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '' (1:4)
@ ./~/react-scripts/~/css-loader!./~/react-scripts/~/postcss-loader!./~/font-awesome/css/font-awesome.min.css 6:412-465
Error in ./~/font-awesome/fonts/fontawesome-webfont.woff?v=4.6.3
Module parse failed: /Users/spencer/code/day-by-day-webapp/node_modules/font-awesome/fonts/fontawesome-webfont.woff?v=4.6.3 Unexpected character '' (1:4)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '' (1:4)
@ ./~/react-scripts/~/css-loader!./~/react-scripts/~/postcss-loader!./~/font-awesome/css/font-awesome.min.css 6:495-547
Error in ./~/font-awesome/fonts/fontawesome-webfont.ttf?v=4.6.3
Module parse failed: /Users/spencer/code/day-by-day-webapp/node_modules/font-awesome/fonts/fontawesome-webfont.ttf?v=4.6.3 Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected character '' (1:0)
@ ./~/react-scripts/~/css-loader!./~/react-scripts/~/postcss-loader!./~/font-awesome/css/font-awesome.min.css 6:576-627
Error in ./~/font-awesome/fonts/fontawesome-webfont.svg?v=4.6.3
Module parse failed: /Users/spencer/code/day-by-day-webapp/node_modules/font-awesome/fonts/fontawesome-webfont.svg?v=4.6.3 Unexpected token (1:0)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (1:0)
@ ./~/react-scripts/~/css-loader!./~/react-scripts/~/postcss-loader!./~/font-awesome/css/font-awesome.min.css 6:660-711
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How To Add Icons | Font Awesome Docs
We recommend using <i> element with the Font Awesome CSS classes for the style class for the style of icon you want to...
Read more >Font Awesome Intro - W3Schools
You place Font Awesome icons by using the prefix fa and the icon's name. Example. The following code: <!DOCTYPE html> <html>
Read more >How to use font awesome icons in 2020 - YouTube
How to use font awesome icons in 2020 | Introduction to HTML5 and CSS3 | HTML5 and CSS3 in 2020.
Read more >How to Add Font Awesome Icons in HTML - YouTube
In this video tutorial, you will learn how to add font awesome icon set to your web project. A basic demostration is also...
Read more >How To Use Font Awesome 5 with React - DigitalOcean
Step 1 — Using Font Awesome · Step 2 — Choosing Icons · Step 3 — Installing Font Awesome · Step 4 —...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fix: the loaders for font resources need a
(\?v=\d+\.\d+\.\d+)?
on the end of their RegExps.I am very new to react in fact front end … can you please help me with loader syntax to include (?v=\d+.\d+.\d+)? in loaders module: { loaders: [ { test: /.js$/, loaders: [‘babel’], exclude: /node_modules/ } ] } }