Hello,
I am trying to move a project from Meteor to MERN.
My Meteor project is not universal and it uses Semantic-ui for the user interface.
I didn't manage to make Semantic-ui work with MERN. I didn't succeed withMaterial-ui neither.
I would like to use one of the three (Semantic-ui, Material-ui or React-Toolbox) for my migration.
Anyone tried one of them with MERN & how?
Thanks
You can easily use react toolbox. To integrate toolbox you should:
Configure webpack with sass loader
{ test: /\.scss$/,
include: /(react-toolbox|app)/,
loaders: [
'style-loader',
'css-loader?modules&sourceMap&importLoaders=2&sourceMap&localIdentName=[name]__[local]___[hash:base64:5]',
'postcss-loader',
'sass-loader?sourceMap'
],}
import 'react-toolbox/lib/commons.scss'; .
yzaroui
Front dev
Hello and thank you for your reply.
I didn't manage to get this to work correctly.
If I run
npm startbefore importing the scss, it works (client side), but if I restart the servernpm startI get this error:I:\dev\mern\NewApp\node_modules\react-toolbox\lib\ripple\theme.scss:1 (function (exports, require, module, __filename, __dirname) { @import "../colors"; ^ SyntaxError: Unexpected token ILLEGAL at Object.exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:513:28) at Module._extensions..js (module.js:550:10) at Object.require.extensions.(anonymous function) [as .js] (I:\dev\mern\NewApp\node_modules\babel-register\lib\node.js:166:7) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (I:\dev\mern\NewApp\node_modules\react-toolbox\lib\ripple\index.js:13:14) at Module._compile (module.js:541:32) at Module._extensions..js (module.js:550:10) at Object.require.extensions.(anonymous function) [as .js] (I:\dev\mern\NewApp\node_modules\babel-register\lib\node.js:166:7) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) [nodemon] app crashed - waiting for file changes before starting...Could you please provide more precise indications to where to put the loader (which webpack file) and where to put the import.
Best,