matteocng / react-flag-icon-css

Simple React SVG country flags Component, supports standard Css and Css Modules.
MIT License
86 stars 13 forks source link

Prop error on FlagIcon render #77

Closed chrisalcantara closed 7 years ago

chrisalcantara commented 7 years ago

Description

When I try rendering a <FlagIcon> component, supplied with a size and code I get the following error: Warning: Failed prop type: Invalid propsizeof value1gsupplied toFlagIcon, expected one of ["lg","2x","3x","4x","5x"].

I am working with the latest version of create-react-app

How I am creating FlagIcon


import React from 'react';
import FlagIconFactory from 'react-flag-icon-css';
const FlagIcon = FlagIconFactory(React, {useCssModules: false});

<FlagIcon code={'gb'} size={"1g"}/>

// ...

Expected behavior or result

Error-free icon rendering

Actual behavior or result

The flags are rendering fine, but I'm getting the error mentioned above.

Diagnostic output:

yarn list --depth 0 > yarn-list.txt or npm list --depth=0 > yarn-list.txt

yarn list v1.0.2

abab@1.0.4
abbrev@1.1.1
accepts@1.3.4
acorn-dynamic-import@2.0.2
acorn-globals@3.1.0
acorn-jsx@3.0.1
acorn@4.0.13
address@1.0.2
ajv-keywords@2.1.0
ajv@5.2.3
align-text@0.1.4
alphanum-sort@1.0.2
amdefine@1.0.1
anser@1.4.1
ansi-align@1.1.0
ansi-escapes@1.4.0
ansi-html@0.0.7
ansi-regex@2.1.1
ansi-styles@3.2.0
anymatch@1.3.2
append-transform@0.4.0
aproba@1.2.0
are-we-there-yet@1.1.4
argparse@1.0.9
aria-query@0.7.0
arr-diff@2.0.0
arr-flatten@1.1.0
array-equal@1.0.0
array-filter@0.0.1
array-find-index@1.0.2
array-flatten@1.1.1
array-includes@3.0.3
array-map@0.0.0
array-reduce@0.0.0
array-union@1.0.2
array-uniq@1.0.3
array-unique@0.2.1
arrify@1.0.1
asap@2.0.6
asn1.js@4.9.1
asn1@0.2.3
assert-plus@1.0.0
assert@1.4.1
ast-types-flow@0.0.7
ast-types@0.9.6
async-each@1.0.1
async-foreach@0.1.3
async@2.5.0
asynckit@0.4.0
autoprefixer@7.1.2
aws-sign2@0.7.0
aws4@1.6.0
axobject-query@0.1.0
babel-code-frame@6.26.0
babel-core@6.25.0
babel-eslint@7.2.3
babel-generator@6.26.0
babel-helper-builder-binary-assignment-operator-visitor@6.24.1
babel-helper-builder-react-jsx@6.26.0
babel-helper-call-delegate@6.24.1
babel-helper-define-map@6.26.0
babel-helper-explode-assignable-expression@6.24.1
babel-helper-function-name@6.24.1
babel-helper-get-function-arity@6.24.1
babel-helper-hoist-variables@6.24.1
babel-helper-optimise-call-expression@6.24.1
babel-helper-regex@6.26.0
babel-helper-remap-async-to-generator@6.24.1
babel-helper-replace-supers@6.24.1
babel-helpers@6.24.1
babel-jest@20.0.3
babel-loader@7.1.1
babel-messages@6.23.0
babel-plugin-check-es2015-constants@6.22.0
babel-plugin-dynamic-import-node@1.0.2
babel-plugin-istanbul@4.1.5
babel-plugin-jest-hoist@20.0.3
babel-plugin-syntax-async-functions@6.13.0
babel-plugin-syntax-class-properties@6.13.0
babel-plugin-syntax-dynamic-import@6.18.0
babel-plugin-syntax-exponentiation-operator@6.13.0
babel-plugin-syntax-flow@6.18.0
babel-plugin-syntax-jsx@6.18.0
babel-plugin-syntax-object-rest-spread@6.13.0
babel-plugin-syntax-trailing-function-commas@6.22.0
babel-plugin-transform-async-to-generator@6.24.1
babel-plugin-transform-class-properties@6.24.1
babel-plugin-transform-es2015-arrow-functions@6.22.0
babel-plugin-transform-es2015-block-scoped-functions@6.22.0
babel-plugin-transform-es2015-block-scoping@6.26.0
babel-plugin-transform-es2015-classes@6.24.1
babel-plugin-transform-es2015-computed-properties@6.24.1
babel-plugin-transform-es2015-destructuring@6.23.0
babel-plugin-transform-es2015-duplicate-keys@6.24.1
babel-plugin-transform-es2015-for-of@6.23.0
babel-plugin-transform-es2015-function-name@6.24.1
babel-plugin-transform-es2015-literals@6.22.0
babel-plugin-transform-es2015-modules-amd@6.24.1
babel-plugin-transform-es2015-modules-commonjs@6.26.0
babel-plugin-transform-es2015-modules-systemjs@6.24.1
babel-plugin-transform-es2015-modules-umd@6.24.1
babel-plugin-transform-es2015-object-super@6.24.1
babel-plugin-transform-es2015-parameters@6.24.1
babel-plugin-transform-es2015-shorthand-properties@6.24.1
babel-plugin-transform-es2015-spread@6.22.0
babel-plugin-transform-es2015-sticky-regex@6.24.1
babel-plugin-transform-es2015-template-literals@6.22.0
babel-plugin-transform-es2015-typeof-symbol@6.23.0
babel-plugin-transform-es2015-unicode-regex@6.24.1
babel-plugin-transform-exponentiation-operator@6.24.1
babel-plugin-transform-flow-strip-types@6.22.0
babel-plugin-transform-object-rest-spread@6.23.0
babel-plugin-transform-react-constant-elements@6.23.0
babel-plugin-transform-react-display-name@6.25.0
babel-plugin-transform-react-jsx-self@6.22.0
babel-plugin-transform-react-jsx-source@6.22.0
babel-plugin-transform-react-jsx@6.24.1
babel-plugin-transform-regenerator@6.24.1
babel-plugin-transform-runtime@6.23.0
babel-plugin-transform-strict-mode@6.24.1
babel-preset-env@1.5.2
babel-preset-flow@6.23.0
babel-preset-jest@20.0.3
babel-preset-react-app@3.0.3
babel-preset-react@6.24.1
babel-register@6.26.0
babel-runtime@6.26.0
babel-template@6.26.0
babel-traverse@6.26.0
babel-types@6.26.0
babylon@6.18.0
balanced-match@0.4.2
base64-js@1.2.1
base64url@2.0.0
batch@0.6.1
bcrypt-pbkdf@1.0.1
big.js@3.2.0
binary-extensions@1.10.0
block-stream@0.0.9
bluebird@3.5.1
bn.js@4.11.8
body-parser@1.18.2
bonjour@3.5.0
boolbase@1.0.0
boom@2.10.1
bowser@1.8.0
boxen@0.6.0
brace-expansion@1.1.8
braces@1.8.5
brorand@1.1.0
browser-resolve@1.11.2
browserify-aes@1.1.0
browserify-cipher@1.0.0
browserify-des@1.0.0
browserify-rsa@4.0.1
browserify-sign@4.0.4
browserify-zlib@0.1.4
browserslist@1.7.7
bser@2.0.0
buffer-indexof@1.1.1
buffer-xor@1.0.3
buffer@4.9.1
builtin-modules@1.1.1
builtin-status-codes@3.0.0
bytes@3.0.0
caller-path@0.1.0
callsites@2.0.0
camel-case@3.0.0
camelcase-keys@2.1.0
camelcase@3.0.0
can-use-dom@0.1.0
caniuse-api@1.6.1
caniuse-db@1.0.30000746
caniuse-lite@1.0.30000746
capture-stack-trace@1.0.0
case-sensitive-paths-webpack-plugin@2.1.1
caseless@0.12.0
center-align@0.1.3
chain-function@1.0.0
chalk@1.1.3
change-emitter@0.1.6
chokidar@1.7.0
ci-info@1.1.1
cipher-base@1.0.4
circular-json@0.3.3
clap@1.2.3
classnames@2.2.5
clean-css@4.1.9
cli-boxes@1.0.0
cli-cursor@2.1.0
cli-width@2.2.0
cliui@3.2.0
clone-deep@0.3.0
clone@1.0.2
co@4.6.0
coa@1.0.4
code-point-at@1.1.0
color-convert@1.9.0
color-name@1.1.3
color-string@0.3.0
color@0.11.4
colormin@1.1.2
colors@1.1.2
combined-stream@1.0.5
commander@2.11.0
commondir@1.0.1
compressible@2.0.11
compression@1.7.1
concat-map@0.0.1
concat-stream@1.6.0
configstore@2.1.0
connect-history-api-fallback@1.4.0
console-browserify@1.1.0
console-control-strings@1.1.0
constants-browserify@1.0.0
contains-path@0.1.0
content-disposition@0.5.2
content-type-parser@1.0.1
content-type@1.0.4
convert-source-map@1.5.0
cookie-signature@1.0.6
cookie@0.3.1
core-js@2.5.1
core-util-is@1.0.2
cosmiconfig@2.2.2
create-ecdh@4.0.0
create-error-class@3.0.2
create-hash@1.1.3
create-hmac@1.1.6
cross-spawn@5.1.0
cryptiles@2.0.5
crypto-browserify@3.11.1
css-color-names@0.0.4
css-in-js-utils@2.0.0
css-loader@0.28.4
css-select@1.2.0
css-selector-tokenizer@0.7.0
css-what@2.1.0
cssesc@0.1.0
cssnano@3.10.0
csso@2.3.2
cssom@0.3.2
cssstyle@0.2.37
currently-unhandled@0.4.1
d@1.0.0
d3-selection@1.1.0
damerau-levenshtein@1.0.4
dashdash@1.14.1
date-now@0.1.4
debug@2.6.9
decamelize@1.2.0
deep-diff@0.3.8
deep-equal@1.0.1
deep-extend@0.4.2
deep-is@0.1.3
default-gateway@2.6.1
default-require-extensions@1.0.0
define-properties@1.1.2
defined@1.0.0
del@2.2.2
delayed-stream@1.0.0
delegates@1.0.0
depd@1.1.1
des.js@1.0.0
destroy@1.0.4
detect-indent@4.0.0
detect-node@2.0.3
detect-port-alt@1.1.3
diff@3.4.0
diffie-hellman@5.0.2
dns-equal@1.0.0
dns-packet@1.2.2
dns-txt@2.0.2
doctrine@2.0.0
dom-converter@0.1.4
dom-helpers@3.2.1
dom-serializer@0.1.0
dom-urls@1.1.0
domain-browser@1.1.7
domelementtype@1.3.0
domhandler@2.1.0
domutils@1.1.6
dot-prop@3.0.0
dotenv@4.0.0
duplexer@0.1.1
duplexer2@0.1.4
ecc-jsbn@0.1.1
ee-first@1.1.1
electron-to-chromium@1.3.26
elliptic@6.4.0
emoji-regex@6.5.1
emojis-list@2.1.0
encodeurl@1.0.1
encoding@0.1.12
enhanced-resolve@3.4.1
entities@1.1.1
errno@0.1.4
error-ex@1.3.1
es-abstract@1.9.0
es-to-primitive@1.1.1
es5-ext@0.10.31
es6-iterator@2.0.1
es6-map@0.1.5
es6-promise@4.1.1
es6-set@0.1.5
es6-symbol@3.1.1
es6-templates@0.2.3
es6-weak-map@2.0.2
escape-html@1.0.3
escape-string-regexp@1.0.5
escodegen@1.9.0
escope@3.6.0
eslint-config-react-app@2.0.1
eslint-import-resolver-node@0.3.1
eslint-loader@1.9.0
eslint-module-utils@2.1.1
eslint-plugin-flowtype@2.35.0
eslint-plugin-import@2.7.0
eslint-plugin-jsx-a11y@5.1.1
eslint-plugin-react@7.1.0
eslint-scope@3.7.1
eslint@4.4.1
espree@3.5.1
esprima@3.1.3
esquery@1.0.0
esrecurse@4.2.0
estraverse@4.2.0
esutils@2.0.2
etag@1.8.1
event-emitter@0.3.5
eventemitter3@1.2.0
events@1.1.1
eventsource@0.1.6
evp_bytestokey@1.0.3
exec-sh@0.2.1
execa@0.7.0
expand-brackets@0.1.5
expand-range@1.8.2
expand-tilde@2.0.2
express@4.16.2
extend@3.0.1
external-editor@2.0.5
extglob@0.3.2
extract-text-webpack-plugin@3.0.0
extsprintf@1.3.0
fast-deep-equal@1.0.0
fast-levenshtein@2.0.6
fastparse@1.1.1
faye-websocket@0.10.0
fb-watchman@2.0.0
fbjs@0.8.16
figures@2.0.0
file-entry-cache@2.0.0
file-loader@0.11.2
filename-regex@2.0.1
fileset@2.0.3
filesize@3.5.10
fill-range@2.2.3
filled-array@1.1.0
finalhandler@1.1.0
find-cache-dir@1.0.0
find-up@2.1.0
flag-icon-css@2.8.0
flat-cache@1.3.0
flatten@1.0.2
flux-standard-action@0.6.1
for-in@1.0.2
for-own@1.0.0
foreach@2.0.5
forever-agent@0.6.1
form-data@2.3.1
forwarded@0.1.2
fresh@0.5.2
fs-extra@3.0.1
fs.realpath@1.0.0
fsevents@1.1.2
fstream-ignore@1.0.5
fstream@1.0.11
function-bind@1.1.1
functional-red-black-tree@1.0.1
gauge@2.7.4
gaze@1.1.2
get-caller-file@1.0.2
get-stdin@4.0.1
get-stream@3.0.0
getpass@0.1.7
gh-pages@1.0.0
glob-base@0.3.0
glob-parent@2.0.0
glob@7.1.2
global-modules@1.0.0
global-prefix@1.0.2
globals@9.18.0
globby@6.1.0
globule@1.2.0
got@5.7.1
graceful-fs@4.1.11
graceful-readlink@1.0.1
growly@1.3.0
gzip-size@3.0.0
handle-thing@1.2.5
handlebars@4.0.10
har-schema@2.0.0
har-validator@5.0.3
has-ansi@2.0.0
has-flag@2.0.0
has-unicode@2.0.1
has@1.0.1
hash-base@2.0.2
hash.js@1.1.3
hawk@3.1.3
he@1.1.1
history@4.7.2
hmac-drbg@1.0.1
hoek@4.2.0
hoist-non-react-statics@2.3.1
home-or-tmp@2.0.0
homedir-polyfill@1.0.1
hosted-git-info@2.5.0
hpack.js@2.1.6
html-comment-regex@1.1.1
html-encoding-sniffer@1.0.1
html-entities@1.2.1
html-loader@0.5.1
html-minifier@3.5.5
html-webpack-plugin@2.29.0
htmlparser2@3.3.0
http-deceiver@1.2.7
http-errors@1.6.2
http-parser-js@0.4.9
http-proxy-middleware@0.17.4
http-proxy@1.16.2
http-signature@1.2.0
https-browserify@0.0.1
hyphenate-style-name@1.0.2
iconv-lite@0.4.19
icss-replace-symbols@1.1.0
icss-utils@2.1.0
ieee754@1.1.8
ignore@3.3.5
imurmurhash@0.1.4
in-publish@2.0.0
indent-string@2.1.0
indexes-of@1.0.1
indexof@0.0.1
inflight@1.0.6
inherits@2.0.3
ini@1.3.4
inline-style-prefixer@3.0.8
inquirer@3.2.1
internal-ip@2.0.3
interpret@1.0.4
invariant@2.2.2
invert-kv@1.0.0
ip-regex@2.1.0
ip@1.1.5
ipaddr.js@1.5.3
is-absolute-url@2.1.0
is-arrayish@0.2.1
is-binary-path@1.0.1
is-buffer@1.1.5
is-builtin-module@1.0.0
is-callable@1.1.3
is-ci@1.0.10
is-date-object@1.0.1
is-directory@0.3.1
is-dotfile@1.0.3
is-equal-shallow@0.1.3
is-extendable@0.1.1
is-extglob@1.0.0
is-finite@1.0.2
is-fullwidth-code-point@2.0.0
is-glob@2.0.1
is-npm@1.0.0
is-number@2.1.0
is-obj@1.0.1
is-path-cwd@1.0.0
is-path-in-cwd@1.0.0
is-path-inside@1.0.0
is-plain-obj@1.1.0
is-plain-object@2.0.4
is-posix-bracket@0.1.1
is-primitive@2.0.0
is-promise@2.1.0
is-redirect@1.0.0
is-regex@1.0.4
is-resolvable@1.0.0
is-retry-allowed@1.1.0
is-root@1.0.0
is-stream@1.1.0
is-svg@2.1.0
is-symbol@1.0.1
is-typedarray@1.0.0
is-utf8@0.2.1
is-windows@1.0.1
is-wsl@1.1.0
isarray@1.0.0
isexe@2.0.0
isobject@3.0.1
isomorphic-fetch@2.2.1
isstream@0.1.2
istanbul-api@1.1.14
istanbul-lib-coverage@1.1.1
istanbul-lib-hook@1.0.7
istanbul-lib-instrument@1.8.0
istanbul-lib-report@1.1.1
istanbul-lib-source-maps@1.2.1
istanbul-reports@1.1.2
jest-changed-files@20.0.3
jest-cli@20.0.4
jest-config@20.0.4
jest-diff@20.0.3
jest-docblock@20.0.3
jest-environment-jsdom@20.0.3
jest-environment-node@20.0.3
jest-haste-map@20.0.5
jest-jasmine2@20.0.4
jest-matcher-utils@20.0.3
jest-matchers@20.0.3
jest-message-util@20.0.3
jest-mock@20.0.3
jest-regex-util@20.0.3
jest-resolve-dependencies@20.0.3
jest-resolve@20.0.4
jest-runtime@20.0.4
jest-snapshot@20.0.3
jest-util@20.0.3
jest-validate@20.0.3
jest@20.0.4
js-base64@2.3.2
js-tokens@3.0.2
js-yaml@3.10.0
jsbn@0.1.1
jschardet@1.5.1
jsdom@9.12.0
jsesc@1.3.0
json-loader@0.5.7
json-schema-traverse@0.3.1
json-schema@0.2.3
json-stable-stringify@1.0.1
json-stringify-safe@5.0.1
json3@3.3.2
json5@0.5.1
jsonfile@3.0.1
jsonify@0.0.0
jsprim@1.4.1
jsx-ast-utils@1.4.1
keycode@2.1.9
kind-of@3.2.2
klaw@1.3.1
latest-version@2.0.0
lazy-cache@0.2.7
lazy-req@1.1.0
lcid@1.0.0
leven@2.1.0
levn@0.3.0
load-json-file@1.1.0
load-script@1.0.0
loader-fs-cache@1.0.1
loader-runner@2.3.0
loader-utils@1.1.0
locate-path@2.0.0
lodash-es@4.17.4
lodash._basefor@3.0.3
lodash._reinterpolate@3.0.0
lodash.assign@4.2.0
lodash.camelcase@4.3.0
lodash.clonedeep@4.5.0
lodash.cond@4.5.2
lodash.defaults@4.2.0
lodash.isarguments@3.1.0
lodash.isarray@3.0.4
lodash.isplainobject@3.2.0
lodash.keysin@3.0.8
lodash.memoize@4.1.2
lodash.merge@4.6.0
lodash.mergewith@4.6.0
lodash.tail@4.1.1
lodash.template@4.4.0
lodash.templatesettings@4.1.0
lodash.throttle@4.1.1
lodash.uniq@4.5.0
lodash@4.17.4
loglevel@1.5.1
longest@1.0.1
loose-envify@1.3.1
loud-rejection@1.6.0
lower-case@1.1.4
lowercase-keys@1.0.0
lru-cache@4.1.1
macaddress@0.2.8
make-dir@1.0.0
makeerror@1.0.11
map-obj@1.0.1
markdown-loader@2.0.1
marked@0.3.6
material-ui@0.19.4
math-expression-evaluator@1.2.17
md5.js@1.3.4
media-typer@0.3.0
mem@1.1.0
memory-fs@0.4.1
meow@3.7.0
merge-descriptors@1.0.1
merge@1.2.0
methods@1.1.2
micromatch@2.3.11
miller-rabin@4.0.1
mime-db@1.30.0
mime-types@2.1.17
mime@1.4.1
mimic-fn@1.1.0
minimalistic-assert@1.0.0
minimalistic-crypto-utils@1.0.1
minimatch@3.0.4
minimist@1.2.0
mixin-object@2.0.1
mkdirp@0.5.1
ms@2.0.0
muicss@0.9.27
multicast-dns-service-types@1.1.0
multicast-dns@6.1.1
mute-stream@0.0.7
nan@2.7.0
natural-compare@1.4.0
ncname@1.0.0
negotiator@0.6.1
no-case@2.3.2
node-fetch@1.7.3
node-forge@0.6.33
node-gyp@3.6.2
node-int64@0.4.0
node-libs-browser@2.0.0
node-notifier@5.1.2
node-pre-gyp@0.6.38
node-sass@4.5.3
node-status-codes@1.0.0
nopt@3.0.6
normalize-package-data@2.4.0
normalize-path@2.1.1
normalize-range@0.1.2
normalize-url@1.9.1
npm-run-path@2.0.2
npmlog@4.1.2
nth-check@1.0.1
num2fraction@1.2.2
number-is-nan@1.0.1
nwmatcher@1.4.3
oauth-sign@0.8.2
object-assign@4.1.1
object-hash@1.2.0
object-keys@1.0.11
object.omit@2.0.1
obuf@1.1.1
on-finished@2.3.0
on-headers@1.0.1
once@1.4.0
onetime@2.0.1
opn@5.1.0
optimist@0.6.1
optionator@0.8.2
original@1.0.0
os-browserify@0.2.1
os-homedir@1.0.2
os-locale@1.4.0
os-tmpdir@1.0.2
osenv@0.1.4
p-finally@1.0.0
p-limit@1.1.0
p-locate@2.0.0
p-map@1.2.0
package-json@2.4.0
pako@0.2.9
param-case@2.1.1
parse-asn1@5.1.0
parse-glob@3.0.4
parse-json@2.2.0
parse-passwd@1.0.0
parse5@1.5.1
parseurl@1.3.2
path-browserify@0.0.0
path-exists@2.1.0
path-is-absolute@1.0.1
path-is-inside@1.0.2
path-key@2.0.1
path-parse@1.0.5
path-to-regexp@1.7.0
path-type@1.1.0
pbkdf2@3.0.14
performance-now@2.1.0
pify@2.3.0
pinkie-promise@2.0.1
pinkie@2.0.4
pkg-dir@1.0.0
pluralize@4.0.0
portfinder@1.0.13
postcss-calc@5.3.1
postcss-colormin@2.2.2
postcss-convert-values@2.6.1
postcss-discard-comments@2.0.4
postcss-discard-duplicates@2.1.0
postcss-discard-empty@2.1.0
postcss-discard-overridden@0.1.1
postcss-discard-unused@2.2.3
postcss-filter-plugins@2.0.2
postcss-flexbugs-fixes@3.2.0
postcss-load-config@1.2.0
postcss-load-options@1.2.0
postcss-load-plugins@2.3.0
postcss-loader@2.0.6
postcss-merge-idents@2.1.7
postcss-merge-longhand@2.0.2
postcss-merge-rules@2.1.2
postcss-message-helpers@2.0.0
postcss-minify-font-values@1.0.5
postcss-minify-gradients@1.0.5
postcss-minify-params@1.2.2
postcss-minify-selectors@2.1.1
postcss-modules-extract-imports@1.2.0
postcss-modules-local-by-default@1.2.0
postcss-modules-scope@1.1.0
postcss-modules-values@1.3.0
postcss-normalize-charset@1.1.1
postcss-normalize-url@3.0.8
postcss-ordered-values@2.2.3
postcss-reduce-idents@2.4.0
postcss-reduce-initial@1.0.1
postcss-reduce-transforms@1.0.4
postcss-selector-parser@2.2.3
postcss-svgo@2.1.6
postcss-unique-selectors@2.0.2
postcss-value-parser@3.3.0
postcss-zindex@2.2.0
postcss@5.2.18
prelude-ls@1.1.2
prepend-http@1.0.4
preserve@0.2.0
pretty-bytes@4.0.2
pretty-error@2.1.1
pretty-format@20.0.3
private@0.1.8
process-nextick-args@1.0.7
process@0.11.10
progress@2.0.0
promise@8.0.1
prop-types-extra@1.0.1
prop-types@15.6.0
proxy-addr@2.0.2
prr@0.0.0
pseudomap@1.0.2
public-encrypt@4.0.0
punycode@1.4.1
q@1.5.0
qs@6.5.1
query-string@4.3.4
querystring-es3@0.2.1
querystring@0.2.0
querystringify@1.0.0
randomatic@1.1.7
randombytes@2.0.5
range-parser@1.2.0
raw-body@2.3.2
rc@1.2.1
react-bootstrap@0.31.3
react-dev-utils@4.1.0
react-dom@16.0.0
react-error-overlay@2.0.2
react-event-listener@0.5.1
react-facebook@4.0.16
react-flag-icon-css@1.0.23
react-grid-system@3.0.6
react-icon-base@2.1.0
react-icons@2.2.7
react-material-ui@0.0.1
react-overlays@0.7.3
react-prop-types@0.4.0
react-redux@5.0.6
react-router-dom@4.2.2
react-router@4.2.0
react-spinner-children@1.0.8
react-tap-event-plugin@3.0.2
react-transition-group@1.2.1
react-youtube@7.5.0
react@16.0.0
read-all-stream@3.1.0
read-pkg-up@1.0.1
read-pkg@1.1.0
readable-stream@2.3.3
readdirp@2.1.0
recast@0.11.23
recompose@0.26.0
recursive-readdir@2.2.1
redent@1.0.0
reduce-css-calc@1.3.0
reduce-function-call@1.0.2
redux-devtools-instrument@1.8.2
redux-devtools@3.4.0
redux-logger@3.0.6
redux-promise@0.5.3
redux-thunk@2.2.0
redux@3.7.2
regenerate@1.3.3
regenerator-runtime@0.11.0
regenerator-transform@0.9.11
regex-cache@0.4.4
regexpu-core@1.0.0
registry-auth-token@3.3.1
registry-url@3.1.0
regjsgen@0.2.0
regjsparser@0.1.5
relateurl@0.2.7
remove-trailing-separator@1.1.0
renderkid@2.0.1
repeat-element@1.1.2
repeat-string@1.6.1
repeating@2.0.1
request@2.83.0
require-directory@2.1.1
require-from-string@1.2.1
require-main-filename@1.0.1
require-uncached@1.0.3
requires-port@1.0.0
resolve-dir@1.0.1
resolve-from@1.0.1
resolve-pathname@2.2.0
resolve@1.4.0
restore-cursor@2.0.0
right-align@0.1.3
rimraf@2.6.2
ripemd160@2.0.1
run-async@2.3.0
rx-lite-aggregates@4.0.8
rx-lite@4.0.8
safe-buffer@5.1.1
sane@1.6.0
sass-graph@2.2.4
sass-loader@6.0.6
sax@1.2.4
schema-utils@0.3.0
scss-tokenizer@0.2.3
select-hose@2.0.0
selfsigned@1.10.1
semver-diff@2.1.0
semver@5.4.1
send@0.16.1
serve-index@1.9.1
serve-static@1.13.1
serviceworker-cache-polyfill@4.0.0
set-blocking@2.0.0
set-immediate-shim@1.0.1
setimmediate@1.0.5
setprototypeof@1.1.0
settle-promise@1.0.0
sha.js@2.4.9
shallow-clone@0.1.2
shebang-command@1.2.0
shebang-regex@1.0.0
shell-quote@1.6.1
shellwords@0.1.1
signal-exit@3.0.2
simple-assign@0.1.0
sister@3.0.0
slash@1.0.0
slice-ansi@1.0.0
slide@1.1.6
sntp@1.0.9
sockjs-client@1.1.4
sockjs@0.3.18
sort-keys@1.1.2
source-list-map@0.1.8
source-map-support@0.4.18
source-map@0.5.7
spdx-correct@1.0.2
spdx-expression-parse@1.0.4
spdx-license-ids@1.2.2
spdy-transport@2.0.20
spdy@3.4.7
spin.js@2.3.2
sprintf-js@1.0.3
sshpk@1.13.1
statuses@1.3.1
stdout-stream@1.4.0
stream-browserify@2.0.1
stream-http@2.7.2
strict-uri-encode@1.1.0
string_decoder@0.10.31
string-length@1.0.1
string-width@1.0.2
stringstream@0.0.5
strip-ansi@3.0.1
strip-bom@2.0.0
strip-eof@1.0.0
strip-indent@1.0.1
strip-json-comments@2.0.1
style-loader@0.18.2
supports-color@4.4.0
svgo@0.7.2
sw-precache-webpack-plugin@0.11.4
sw-precache@5.2.0
sw-toolbox@3.6.0
symbol-observable@1.0.4
symbol-tree@3.2.2
table@4.0.2
tapable@0.2.8
tar-pack@3.4.0
tar@2.2.1
test-exclude@4.1.1
text-table@0.2.0
throat@3.2.0
through@2.3.8
thunky@0.1.0
time-stamp@2.0.0
timed-out@3.1.3
timers-browserify@2.0.4
tmp@0.0.33
tmpl@1.0.4
to-arraybuffer@1.0.1
to-fast-properties@1.0.3
toposort@1.0.6
tough-cookie@2.3.3
tr46@0.0.3
trim-newlines@1.0.0
trim-right@1.0.1
tryit@1.0.3
tty-browserify@0.0.0
tunnel-agent@0.6.0
tweetnacl@0.14.5
type-check@0.3.2
type-is@1.6.15
typedarray@0.0.6
ua-parser-js@0.7.17
uglify-js@2.8.29
uglify-to-browserify@1.0.2
uglifyjs-webpack-plugin@0.4.6
uid-number@0.0.6
uncontrollable@4.1.0
uniq@1.0.1
uniqid@4.1.1
uniqs@2.0.0
universalify@0.1.1
unpipe@1.0.0
unzip-response@1.0.2
update-notifier@1.0.3
upper-case@1.1.3
urijs@1.19.0
url-loader@0.5.9
url-parse-lax@1.0.0
url-parse@1.1.9
url@0.11.0
util-deprecate@1.0.2
util@0.10.3
utila@0.3.3
utils-merge@1.0.1
uuid@2.0.3
validate-npm-package-license@3.0.1
value-equal@0.4.0
vary@1.1.2
vendors@1.0.1
verror@1.10.0
vm-browserify@0.0.4
walker@1.0.7
warning@3.0.0
watch@0.10.0
watchpack@1.4.0
wbuf@1.7.2
webidl-conversions@4.0.2
webpack-dev-middleware@1.12.0
webpack-dev-server@2.8.2
webpack-manifest-plugin@1.2.1
webpack-sources@1.0.1
webpack@3.5.1
websocket-driver@0.7.0
websocket-extensions@0.1.2
whatwg-encoding@1.0.1
whatwg-fetch@2.0.3
whatwg-url@4.8.0
whet.extend@0.9.9
which-module@1.0.0
which@1.3.0
wide-align@1.1.2
widest-line@1.0.0
window-size@0.1.0
wordwrap@1.0.0
worker-farm@1.5.0
wrap-ansi@2.1.0
wrappy@1.0.2
write-file-atomic@1.3.4
write@0.2.1
xdg-basedir@2.0.0
xml-char-classes@1.0.0
xml-name-validator@2.0.1
xtend@4.0.1
y18n@3.2.1
yallist@2.1.2
yargs-parser@5.0.0
yargs@7.1.0
youtube-player@6.4.0

The configuration file of my module bundler:

'use strict';

const autoprefixer = require('autoprefixer');
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin');
const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin');
const eslintFormatter = require('react-dev-utils/eslintFormatter');
const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin');
const getClientEnvironment = require('./env');
const paths = require('./paths');

// Webpack uses `publicPath` to determine where the app is being served from.
// In development, we always serve from the root. This makes config easier.
const publicPath = '/';
// `publicUrl` is just like `publicPath`, but we will provide it to our app
// as %PUBLIC_URL% in `index.html` and `process.env.PUBLIC_URL` in JavaScript.
// Omit trailing slash as %PUBLIC_PATH%/xyz looks better than %PUBLIC_PATH%xyz.
const publicUrl = '';
// Get environment variables to inject into our app.
const env = getClientEnvironment(publicUrl);

// This is the development configuration.
// It is focused on developer experience and fast rebuilds.
// The production configuration is different and lives in a separate file.
module.exports = {
  // You may want 'eval' instead if you prefer to see the compiled output in DevTools.
  // See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.
  devtool: 'cheap-module-source-map',
  // These are the "entry points" to our application.
  // This means they will be the "root" imports that are included in JS bundle.
  // The first two entry points enable "hot" CSS and auto-refreshes for JS.
  entry: [
    // We ship a few polyfills by default:
    require.resolve('./polyfills'),
    // Include an alternative client for WebpackDevServer. A client's job is to
    // connect to WebpackDevServer by a socket and get notified about changes.
    // When you save a file, the client will either apply hot updates (in case
    // of CSS changes), or refresh the page (in case of JS changes). When you
    // make a syntax error, this client will display a syntax error overlay.
    // Note: instead of the default WebpackDevServer client, we use a custom one
    // to bring better experience for Create React App users. You can replace
    // the line below with these two lines if you prefer the stock client:
    // require.resolve('webpack-dev-server/client') + '?/',
    // require.resolve('webpack/hot/dev-server'),
    require.resolve('react-dev-utils/webpackHotDevClient'),
    // Finally, this is your app's code:
    paths.appIndexJs,
    // We include the app code last so that if there is a runtime error during
    // initialization, it doesn't blow up the WebpackDevServer client, and
    // changing JS code would still trigger a refresh.
  ],
  output: {
    // Next line is not used in dev but WebpackDevServer crashes without it:
    path: paths.appBuild,
    // Add /* filename */ comments to generated require()s in the output.
    pathinfo: true,
    // This does not produce a real file. It's just the virtual path that is
    // served by WebpackDevServer in development. This is the JS bundle
    // containing code from all our entry points, and the Webpack runtime.
    filename: 'static/js/bundle.js',
    // There are also additional JS chunk files if you use code splitting.
    chunkFilename: 'static/js/[name].chunk.js',
    // This is the URL that app is served from. We use "/" in development.
    publicPath: publicPath,
    // Point sourcemap entries to original disk location (format as URL on Windows)
    devtoolModuleFilenameTemplate: info =>
      path.resolve(info.absoluteResourcePath).replace(/\\/g, '/'),
  },
  resolve: {
    // This allows you to set a fallback for where Webpack should look for modules.
    // We placed these paths second because we want `node_modules` to "win"
    // if there are any conflicts. This matches Node resolution mechanism.
    // https://github.com/facebookincubator/create-react-app/issues/253
    modules: ['node_modules', paths.appNodeModules].concat(
      // It is guaranteed to exist because we tweak it in `env.js`
      process.env.NODE_PATH.split(path.delimiter).filter(Boolean)
    ),
    // These are the reasonable defaults supported by the Node ecosystem.
    // We also include JSX as a common component filename extension to support
    // some tools, although we do not recommend using it, see:
    // https://github.com/facebookincubator/create-react-app/issues/290
    // `web` extension prefixes have been added for better support
    // for React Native Web.
    extensions: ['.web.js', '.js', '.json', '.web.jsx', '.jsx'],
    alias: {

      // Support React Native Web
      // https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
      'react-native': 'react-native-web',
    },
    plugins: [
      // Prevents users from importing files from outside of src/ (or node_modules/).
      // This often causes confusion because we only process files within src/ with babel.
      // To fix this, we prevent you from importing files out of src/ -- if you'd like to,
      // please link the files into your node_modules/ and let module-resolution kick in.
      // Make sure your source files are compiled, as they will not be processed in any way.
      new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]),
    ],
  },
  module: {
    strictExportPresence: true,
    rules: [
      // TODO: Disable require.ensure as it's not a standard language feature.
      // We are waiting for https://github.com/facebookincubator/create-react-app/issues/2176.
      // { parser: { requireEnsure: false } },

      // First, run the linter.
      // It's important to do this before Babel processes the JS.
      {
        test: /\.(js|jsx)$/,
        enforce: 'pre',
        use: [
          {
            options: {
              formatter: eslintFormatter,
              eslintPath: require.resolve('eslint'),

            },
            loader: require.resolve('eslint-loader'),
          },
        ],
        include: paths.appSrc,
      },
      {
        // "oneOf" will traverse all following loaders until one will
        // match the requirements. When no loader matches it will fall
        // back to the "file" loader at the end of the loader list.
        oneOf: [
          // "url" loader works like "file" loader except that it embeds assets
          // smaller than specified limit in bytes as data URLs to avoid requests.
          // A missing `test` is equivalent to a match.
          {
            test: [/\.bmp$/, /\.gif$/, /\.jpe?g$/, /\.png$/],
            loader: require.resolve('url-loader'),
            options: {
              limit: 10000,
              name: 'static/media/[name].[hash:8].[ext]',
            },
          },
          // Process JS with Babel.
          {
            test: /\.(js|jsx)$/,
            include: paths.appSrc,
            loader: require.resolve('babel-loader'),
            options: {

              // This is a feature of `babel-loader` for webpack (not Babel itself).
              // It enables caching results in ./node_modules/.cache/babel-loader/
              // directory for faster rebuilds.
              cacheDirectory: true,
            },
          },
          // "postcss" loader applies autoprefixer to our CSS.
          // "css" loader resolves paths in CSS and adds assets as dependencies.
          // "style" loader turns CSS into JS modules that inject <style> tags.
          // In production, we use a plugin to extract that CSS to a file, but
          // in development "style" loader enables hot editing of CSS.
          {
            test: /\.css$/,
            use: [
              require.resolve('style-loader'),
              {
                loader: require.resolve('css-loader'),
                options: {
                  importLoaders: 1,
                },
              },
              {
                loader: require.resolve('postcss-loader'),
                options: {
                  // Necessary for external CSS imports to work
                  // https://github.com/facebookincubator/create-react-app/issues/2677
                  ident: 'postcss',
                  plugins: () => [
                    require('postcss-flexbugs-fixes'),
                    autoprefixer({
                      browsers: [
                        '>1%',
                        'last 4 versions',
                        'Firefox ESR',
                        'not ie < 9', // React doesn't support IE8 anyway
                      ],
                      flexbox: 'no-2009',
                    }),
                  ],
                },
              },
            ],
          },
          {
          test: /\.md$/,
              use: [
                  {
                      loader: "html-loader"
                  },
                  {
                      loader: "markdown-loader",
                      options: {
                          /* your options here */
                      }
                  }
              ]
          },
          {
           test: /\.scss$/,
           include: paths.appSrc,
           use: ['style-loader', 'css-loader', 'sass-loader?sourceMap=true']
          },
         //
          //
          // "file" loader makes sure those assets get served by WebpackDevServer.
          // When you `import` an asset, you get its (virtual) filename.
          // In production, they would get copied to the `build` folder.
          // This loader doesn't use a "test" so it will catch all modules
          // that fall through the other loaders.
          {
            // Exclude `js` files to keep "css" loader working as it injects
            // it's runtime that would otherwise processed through "file" loader.
            // Also exclude `html` and `json` extensions so they get processed
            // by webpacks internal loaders.
            exclude: [
              /\.js$/,
              /\.html$/,
              /\.json$/,
              /\.sass$/,
              /\.scss$/
            ],
            loader: require.resolve('file-loader'),
            options: {
              name: 'static/media/[name].[hash:8].[ext]',
            },
          },
        ],
      },
     //
      //
      // ** STOP ** Are you adding a new loader?
      // Make sure to add the new loader(s) before the "file" loader.
    ],
  },
  plugins: [
    // Makes some environment variables available in index.html.
    // The public URL is available as %PUBLIC_URL% in index.html, e.g.:
    // <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
    // In development, this will be an empty string.
    new InterpolateHtmlPlugin(env.raw),
    // Generates an `index.html` file with the <script> injected.
    new HtmlWebpackPlugin({
      inject: true,
      template: paths.appHtml,
    }),
    // Add module names to factory functions so they appear in browser profiler.
    new webpack.NamedModulesPlugin(),
    // Makes some environment variables available to the JS code, for example:
    // if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`.
    new webpack.DefinePlugin(env.stringified),
    // This is necessary to emit hot updates (currently CSS only):
    new webpack.HotModuleReplacementPlugin(),
    // Watcher doesn't work well if you mistype casing in a path so we use
    // a plugin that prints an error when you attempt to do this.
    // See https://github.com/facebookincubator/create-react-app/issues/240
    new CaseSensitivePathsPlugin(),
    // If you require a missing module and then `npm install` it, you still have
    // to restart the development server for Webpack to discover it. This plugin
    // makes the discovery automatic so you don't have to restart.
    // See https://github.com/facebookincubator/create-react-app/issues/186
    new WatchMissingNodeModulesPlugin(paths.appNodeModules),
    // Moment.js is an extremely popular library that bundles large locale files
    // by default due to how Webpack interprets its code. This is a practical
    // solution that requires the user to opt into importing specific locales.
    // https://github.com/jmblog/how-to-optimize-momentjs-with-webpack
    // You can remove this if you don't use Moment.js:
    new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
  ],
  // Some libraries import Node modules but don't use them in the browser.
  // Tell Webpack to provide empty mocks for them so importing them works.
  node: {
    dgram: 'empty',
    fs: 'empty',
    net: 'empty',
    tls: 'empty',
    child_process: 'empty',
  },
  // Turn off performance hints during development because we don't do any
  // splitting or minification in interest of speed. These warnings become
  // cumbersome.
  performance: {
    hints: false,
  },
};
matteocng commented 7 years ago

Hello @chrisalcantara, thanks for your report. Please replace 1g with lg, feel free to re-open if the issue persists.