SackCastellon
02/11/2019, 12:41 PMwebpack-bundle
task I get the following error:
> Task :webpack-bundle
Hash: df342eca11f1ca4960d1
Version: webpack 4.29.3
Time: 1438ms
Built at: 02/11/2019 1:36:14 PM
Asset Size Chunks Chunk Names
main.bundle.js 4.06 MiB main [emitted] main
Entrypoint main = main.bundle.js
[../../../../node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {main} [built]
[../../../../node_modules_imported/kotlin-extensions/kotlin-extensions.js] D:/Juanjo/Code/UJI/mpp/build/node_modules_imported/kotlin-extensions/kotlin-extensions.js 4.09 KiB {main} [built]
[../../../../node_modules_imported/kotlin-react-dom/kotlin-react-dom.js] D:/Juanjo/Code/UJI/mpp/build/node_modules_imported/kotlin-react-dom/kotlin-react-dom.js 112 KiB {main} [built]
[../../../../node_modules_imported/kotlin-react/kotlin-react.js] D:/Juanjo/Code/UJI/mpp/build/node_modules_imported/kotlin-react/kotlin-react.js 18.4 KiB {main} [built]
[../../../../node_modules_imported/kotlin/kotlin.js] D:/Juanjo/Code/UJI/mpp/build/node_modules_imported/kotlin/kotlin.js 1.7 MiB {main} [built]
[../../../../node_modules_imported/kotlinx-coroutines-core/kotlinx-coroutines-core.js] D:/Juanjo/Code/UJI/mpp/build/node_modules_imported/kotlinx-coroutines-core/kotlinx-coroutines-core.js 708 KiB {main} [built]
[../../../../node_modules_imported/kotlinx-html-js/kotlinx-html-js.js] D:/Juanjo/Code/UJI/mpp/build/node_modules_imported/kotlinx-html-js/kotlinx-html-js.js 587 KiB {main} [built]
[./mpp.js] 5.06 KiB {main} [built]
+ 12 hidden modules
ERROR in D:/Juanjo/Code/UJI/mpp/build/node_modules_imported/kotlin-extensions/kotlin-extensions.js
Module not found: Error: Can't resolve 'core-js/library/fn/object/assign' in 'D:\Juanjo\Code\UJI\mpp\build\node_modules_imported\kotlin-extensions'
@ D:/Juanjo/Code/UJI/mpp/build/node_modules_imported/kotlin-extensions/kotlin-extensions.js 116:37-80
@ D:/Juanjo/Code/UJI/mpp/build/node_modules_imported/kotlin-react/kotlin-react.js
@ ./mpp.js
> Task :webpack-bundle FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':webpack-bundle'.
> node webpack.js failed (exit code = 2)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings>
BUILD FAILED in 4s
8 actionable tasks: 3 executed, 5 up-to-date
Cause: node webpack.js failed (exit code = 2)
13:36:14: Task execution finished 'webpack-bundle'.
The project is just a copy of https://github.com/Kotlin/kotlin-frontend-plugin/tree/master/examples/new-mpp, with the timer example from https://reactjs.org/#a-stateful-component to test how KotlinJS works with react.SackCastellon
02/11/2019, 12:44 PMkotlin-extensions
library but I'm not really sure how to fix thatSackCastellon
02/11/2019, 5:35 PM