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

[question] webpack css loader equivalent #192

Open
tjamet opened this issue Aug 17, 2017 · 0 comments
Open

[question] webpack css loader equivalent #192

tjamet opened this issue Aug 17, 2017 · 0 comments

Comments

@tjamet
Copy link

tjamet commented Aug 17, 2017

Hi,

I am seeking the internet on how to integrate react-toolbox within a brand new application generated by roc but don't manage to find an answer.
My problem is that I get a syntax error when importing react-toolbox/lib/app_bar:

<pathTo>/node_modules/react-toolbox/lib/ripple/theme.css:1
(function (exports, require, module, __filename, __dirname) { :root {
                                                              ^
SyntaxError: Unexpected token :
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (<pathTo>/node_modules/react-toolbox/lib/ripple/index.js:13:14)

In react-toolbox it is instructed to add a loader for css modules: https://github.com/react-toolbox/react-toolbox#usage-in-webpack-projects-not-create-react-app but don't manage to find the equivalent with roc

Could you help me finding my way out?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant