grommet / grommet-cli

Deprecated, use create-react-app for v2 instead. Command Line interface for grommet
Apache License 2.0
28 stars 18 forks source link

Missing json-loader in webpack #22

Closed edvinh closed 7 years ago

edvinh commented 7 years ago

When generating a new project using grommet new sample-app --type basic (--type app and --type docs included) the webpack config is missing a JSON loader. The issue emerges when trying to import the Card component (and probably others which I haven't tested), and webpack throws the following error:

` Failed to compile.

Error in (undefined) ./~/remark-parse/lib/defaults.js Module not found: ./block-elements in C:\[...]\node_modules\remark-parse\lib

@ ./~/remark-parse/lib/defaults.js 19:10-37 ` Tested on both Linux and Windows 7.