Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[question] webpack css loader equivalent #192

@tjamet

Description

@tjamet

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions