I get an error when importing css from npm packages


#1

I’ve followed the official guide for importing css and always get this error when building. The example error below is when importing medium-draft css but I get it with pretty much any css import.

W20161023-22:05:27.592(-4)? (STDERR) /Users/mattmacpherson/Documents/Websites/project/node_modules/medium-draft/lib/index.css:6
W20161023-22:05:27.592(-4)? (STDERR) .DraftEditor-editorContainer,.DraftEditor-root,.public-DraftEditor-content{height:inherit;text-align:initial}.public-DraftEditor-content[contenteditable=true]{-webkit-user-modify:read-write-plaintext-only}.DraftEditor-root{position:relative}.DraftEditor-editorContainer{background-color:hsla(0,0%,100%,0);border-left:.1px solid transparent;position:relative;z-index:1}.public-DraftEditor-block{position:relative}.DraftEditor-alignLeft .public-DraftStyleDefault-block{text-align:left}.DraftEditor-alignLeft .public-DraftEditorPlaceholder-root{left:0;text-align:left}.DraftEditor-alignCenter .public-DraftStyleDefault-block{text-align:center}.DraftEditor-alignCenter .public-DraftEditorPlaceholder-root{margin:0 auto;text-align:center;width:100%}.DraftEditor-alignRight .public-DraftStyleDefault-block{text-align:right}.DraftEditor-alignRight .public-DraftEditorPlaceholder-root{right:0;text-align:right}.public-DraftEditorPlaceholder
W20161023-22:05:27.592(-4)? (STDERR)          
W20161023-22:05:27.592(-4)? (STDERR) SyntaxError: Unexpected token .
W20161023-22:05:27.593(-4)? (STDERR)     at exports.runInThisContext (vm.js:53:16)
W20161023-22:05:27.593(-4)? (STDERR)     at Module._compile (module.js:373:25)
W20161023-22:05:27.593(-4)? (STDERR)     at Object.Module._extensions..js (module.js:416:10)
W20161023-22:05:27.593(-4)? (STDERR)     at Module.load (module.js:343:32)
W20161023-22:05:27.594(-4)? (STDERR)     at Module.Mp.load (/Users/mattmacpherson/.meteor/packages/babel-compiler/.6.9.1_1.15j1r1l++os+web.browser+web.cordova/npm/node_modules/reify/node/runtime.js:16:23)
W20161023-22:05:27.594(-4)? (STDERR)     at Function.Module._load (module.js:300:12)
W20161023-22:05:27.594(-4)? (STDERR)     at Module.require (module.js:353:17)
W20161023-22:05:27.594(-4)? (STDERR)     at require (internal/module.js:12:17)
W20161023-22:05:27.595(-4)? (STDERR)     at npmRequire (/Users/mattmacpherson/Documents/Websites/project/.meteor/local/build/programs/server/npm-require.js:129:10)
W20161023-22:05:27.595(-4)? (STDERR)     at Module.Mp.useNode (packages/modules-runtime/modules-runtime.js:69:1)