react-toolbox: Unexpected token : running node app.js

/Users/James/Documents/app/node_modules/react-toolbox/lib/ripple/theme.css:1
(function (exports, require, module, __filename, __dirname) { :root {
                                                              ^
SyntaxError: Unexpected token :
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Module._extensions..js (module.js:579:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/James/Documents/app/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/James/Documents/writers/node_modules/react-toolbox/lib/ripple/index.js:13:14)

I don’t know why I got above error msg when I try to run my express server. My webpack.config.js is here http://pastebin.com/raw/k5RyXuZP

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (3 by maintainers)

Most upvoted comments

@markchkhotua I was not able to solve this, I chose to move on and implement the material components I needed myself. I probably won’t try react-toolbox again, I’m afraid. Good luck.