These are chat archives for chandu0101/scalajs-react-components

28th
May 2018
sofathitesh
@sofathitesh
May 28 2018 09:18
hi i am using scela react component in my project
I am facing errors
I copy the chandu folder and paste in my project folder
project/chandu
i import the required libraries in my code
and i compile the code with this command
sudo sbt clean fastOptJS::webpack
and then its compile fine
after that i try to use MuiAppBar in code
and again i complie my code i found these errors
[error] ModuleNotFoundError: Module not found: Error: Can't resolve 'material-ui/AppBar' in '/home/sofat/AndroidApp/js'
[error] at factoryCallback (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/lib/Compilation.js:264:39)
[error] at factory (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/lib/NormalModuleFactory.js:247:20)
[error] at resolver (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/lib/NormalModuleFactory.js:65:21)
[error] at asyncLib.parallel (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/lib/NormalModuleFactory.js:138:21)
[error] at /home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/node_modules/async/dist/async.js:3888:9
[error] at /home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/node_modules/async/dist/async.js:473:16
[error] at iteratorCallback (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/node_modules/async/dist/async.js:1062:13)
[error] at /home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/node_modules/async/dist/async.js:969:16
[error] at /home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/node_modules/async/dist/async.js:3885:13
[error] at resolvers.normal.resolve (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/webpack/lib/NormalModuleFactory.js:130:23)
[error] at onError (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/Resolver.js:65:10)
[error] at loggingCallbackWrapper (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
[error] at runAfter (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/Resolver.js:158:4)
[error] at innerCallback (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/Resolver.js:146:3)
[error] at loggingCallbackWrapper (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
[error] at next (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/tapable/lib/Tapable.js:252:11)
[error] at /home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:40:4
[error] at loggingCallbackWrapper (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
[error] at runAfter (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/Resolver.js:158:4)
[error] at innerCallback (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/Resolver.js:146:3)
[error] at loggingCallbackWrapper (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
[error] at next (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/tapable/lib/Tapable.js:252:11)
[error] at innerCallback (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/Resolver.js:144:11)
[error] at loggingCallbackWrapper (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
[error] at next (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/tapable/lib/Tapable.js:249:35)
[error] at resolver.doResolve.createInnerCallback (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:44:6)
[error] at loggingCallbackWrapper (/home/sofat/AndroidApp/target/scala-2.12/scalajs-bundler/main/node_modules/enhanced-resolve/lib/createInnerCa
i use npm install material-ui but not working
please any one help me in this
????
@chandu0101