Issues with UI Elements
I've been trying to add UI Elements to a project. It is an electron app already using React. When I try to use the npm version, I get errors for pre-processing the scss files. I'm not great with webpack so I haven't been able to work around it.
I've also tried to use the CDN versions - however, when I use the bundled react version, I get an error for duplicate definition of react, and when I use the no react version, I get an error that react cannot be found.
Any suggestions?
-
You can see a small demo app here
https://github.com/box/box-ui-elements-demo
And here is it's webpack config
https://github.com/box/box-ui-elements-demo/blob/master/webpack.config.js
Package.json has the style-loader and css-loader and sass-loader
https://github.com/box/box-ui-elements-demo/blob/master/package.json
サインインしてコメントを残してください。
コメント
1件のコメント