altavir
03/06/2019, 2:52 PManton.bannykh
03/06/2019, 2:56 PMaltavir
03/06/2019, 2:57 PMaltavir
03/06/2019, 2:59 PManton.bannykh
03/06/2019, 3:02 PM.js
files and check that they are indeed commonjs modules. If some one them are compiled to plain that could very well be the causealtavir
03/06/2019, 3:03 PMumd
everyehere then. Since library I use uses umd
anton.bannykh
03/06/2019, 3:03 PMumd
should work as wellaltavir
03/06/2019, 3:05 PManton.bannykh
03/06/2019, 3:08 PMumd
detects at run time how modules should actually look like and uses then correct mechanism.altavir
03/06/2019, 3:08 PMaltavir
03/06/2019, 3:10 PMaltavir
03/06/2019, 3:12 PMgbaldeck
03/06/2019, 3:14 PMaltavir
03/06/2019, 3:16 PMaltavir
03/06/2019, 3:17 PMgbaldeck
03/06/2019, 3:21 PMaltavir
03/06/2019, 3:22 PMkotin.js
from kotlin-js-min\main\? I checked bundle, it does have kotlin.js
, so I do not think that the problem is with paths.gbaldeck
03/06/2019, 3:23 PMgbaldeck
03/06/2019, 3:23 PMaltavir
03/06/2019, 3:24 PMaltavir
03/06/2019, 3:25 PMkotlin.js
and then bundled with webpack bundle.gbaldeck
03/06/2019, 3:27 PMaltavir
03/06/2019, 3:28 PMmain.bundle.js
.altavir
03/06/2019, 3:29 PM/***/ "./kotlin.js":
/*!*******************!*\
!*** ./kotlin.js ***!
\*******************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
etcaltavir
03/06/2019, 3:29 PMgbaldeck
03/06/2019, 3:31 PMaltavir
03/06/2019, 3:31 PMaltavir
03/06/2019, 3:32 PMError loading module 'dataforge-context'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'dataforge-context'.
gbaldeck
03/06/2019, 3:37 PMaltavir
03/06/2019, 3:38 PMgbaldeck
03/06/2019, 3:43 PMgbaldeck
03/06/2019, 3:43 PMgbaldeck
03/06/2019, 3:44 PManton.bannykh
03/06/2019, 3:51 PMdev
branch of your project, and here is what dataforge-meta/build/classes/kotlin/js/main/dataforge-meta.js
starts with:
if (typeof kotlin === 'undefined') {
throw new Error("Error loading module 'dataforge-meta'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'dataforge-meta'.");
}
this['dataforge-meta'] = function (_, Kotlin) {
...
This is clearly plain
module kind, which is not recognized by webpack (it won't know what it depends on).
It seems that the vis
depends on io
, which depends on meta
, so that .js
file will be loaded by webpack.
So it seems that you are indeed compiling some modules to plain
, which causes webpack to miss some dependencies.
Unfortunately I don't have jdk11 installed, so I cannot assemble the vis
module directly. 😃altavir
03/06/2019, 3:55 PMaltavir
03/06/2019, 4:25 PMaltavir
03/06/2019, 6:11 PMaltavir
03/06/2019, 6:13 PMafterevaluate
block and now it is workinganton.bannykh
03/07/2019, 11:05 AM