Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing css causes error #165

Closed
robmcguinness opened this issue Apr 26, 2018 · 0 comments · Fixed by #167
Closed

Importing css causes error #165

robmcguinness opened this issue Apr 26, 2018 · 0 comments · Fixed by #167
Labels

Comments

@robmcguinness
Copy link
Contributor

Doing:

import 'react-datetime/css/react-datetime.css';

Results in:

Module build failed: Syntax Error 
(1:1) Unknown word
> 1 | exports = module.exports = require("../../css-loader/lib/css-base.js")(true);
    | ^
  2 | // imports
  3 | 
 @ /Users/rmcguinness/Workspaces/os/availity-workflow/packages/example-react/node_modules/react-datetime/css/react-datetime.css 2:14-127 21:1-42:3 21:125-42:2 22:19-132
 @ ./App.js
 @ ./index.js
 @ multi webpack-dev-server/client?http://localhost:3001 webpack/hot/only-dev-server ./index.js
robmcguinness pushed a commit that referenced this issue Apr 26, 2018
Fixes #165. post-css loader was causing issues when importing css files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant