cfnz / muirwik

Muirwik - a Material UI React wrapper written in Kotlin
Mozilla Public License 2.0
132 stars 25 forks source link

Not building (on Windows?) #56

Closed micheljung closed 3 years ago

micheljung commented 3 years ago

I just cloned the project and ran gradlew build:

21:48:05: Executing task 'build'...

> Task :assemble UP-TO-DATE
> Task :check UP-TO-DATE
> Task :build UP-TO-DATE
> Task :muirwik-components:processResources NO-SOURCE
> Task :muirwik-components:browserDistributeResources NO-SOURCE
> Task :kotlinNodeJsSetup SKIPPED
> Task :muirwik-components:packageJson
> Task :muirwik-components:testPackageJson
> Task :muirwik-testapp:packageJson
> Task :muirwik-testapp:testPackageJson
> Task :rootPackageJson

> Task :kotlinNpmInstall
warning workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components-test > mocha > debug@3.2.6: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components-test > karma > socket.io > debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components-test > mocha > chokidar > fsevents@2.1.3: "Please update to latest v2.3 or v2.2"
warning workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > webpack > watchpack > watchpack-chokidar2 > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components-test > karma > socket.io > engine.io > debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components-test > karma > socket.io > socket.io-parser > debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
warning workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/lab@4.0.0-alpha.56" has unmet peer dependency "react@^16.8.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/lab@4.0.0-alpha.56" has unmet peer dependency "react-dom@^16.8.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/core@4.11.3" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/core@4.11.3" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/icons@4.11.2" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/icons@4.11.2" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-testapp > react-hot-loader@4.13.0" has unmet peer dependency "react@^15.0.0 || ^16.0.0 || ^17.0.0 ".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-testapp > react-hot-loader@4.13.0" has unmet peer dependency "react-dom@^15.0.0 || ^16.0.0 || ^17.0.0 ".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > kotlin-wrappers-kotlin-react-dom-jsLegacy > react-dom@17.0.1" has unmet peer dependency "react@17.0.1".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > kotlin-wrappers-kotlin-styled-jsLegacy > styled-components@5.2.1" has unmet peer dependency "react@>= 16.8.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > kotlin-wrappers-kotlin-styled-jsLegacy > styled-components@5.2.1" has unmet peer dependency "react-dom@>= 16.8.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > kotlin-wrappers-kotlin-styled-jsLegacy > styled-components@5.2.1" has unmet peer dependency "react-is@>= 16.8.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/lab > @material-ui/utils@4.11.2" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/lab > @material-ui/utils@4.11.2" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/core > react-transition-group@4.4.1" has unmet peer dependency "react@>=16.6.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/core > react-transition-group@4.4.1" has unmet peer dependency "react-dom@>=16.6.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/core > @material-ui/styles@4.11.3" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/core > @material-ui/styles@4.11.3" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/core > @material-ui/system@4.11.3" has unmet peer dependency "react@^16.8.0 || ^17.0.0".
warning "workspace-aggregator-012dc7a8-7d8d-44b9-8282-d15866267b28 > muirwik-muirwik-components > @material-ui/core > @material-ui/system@4.11.3" has unmet peer dependency "react-dom@^16.8.0 || ^17.0.0".

> Task :muirwik-components:generateExternalsIntegrated
> Task :muirwik-components:compileKotlinJs
> Task :muirwik-components:processDceKotlinJs

> Task :muirwik-components:browserProductionWebpack
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles' not found
Module '@material-ui/styles/StylesProvider' not found
Module '@material-ui/styles/jssPreset' not found

> Task :muirwik-components:browserProductionWebpack FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings
10 actionable tasks: 10 executed

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':muirwik-components:browserProductionWebpack'.
> Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles' not found
  Module '@material-ui/styles/StylesProvider' not found
  Module '@material-ui/styles/jssPreset' not found

* 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

BUILD FAILED in 40s
21:48:45: Task execution finished 'build'.

What am I missing?

cfnz commented 3 years ago

Have not got time to test it on Windows at the moment, but as a quick check, as mentioned in the readme:

Make sure you have java, git and the yarn package manager installed (and not the yarn that comes with cmdtest in Ubuntu :-)), then the following should work (possibly may also need npm installed):

cfnz commented 3 years ago

I have just tried it on a Windows box without node/yarn installed, downloaded node, installed yarn, found one mistake on my windows instructions which tells you to cd into muirwik/muirwik-testapp rather than just muirwik (I will fix that), but doesn't look like you did that anyway.

I went gradle.bat build and it all works (though I did do a gradle.bat :muirwik-testapp:build first, not sure if that changed anything, shouldn't have)...

So it seems to work for me... (downloaded node version 4.16.0)

micheljung commented 3 years ago

Thanks a lot for checking! While I'm trying to figure it out: what about all those warnings? I tested it on Linux with AdoptOpenJDK 11 and they are printed, too :)

micheljung commented 3 years ago

I set up a Windows 10 VM in which I installed AdoptOpenJDK 11 and Git, cloned the project, and ran .\gradlew build. After running into https://github.com/mui-org/material-ui/issues/12432 and fixing it by disabling Windows defender, the build went through fine.

So I went back and used C:\Users\<Name>\.gradle\yarn\yarn-v1.22.4\bin\yarn cache dir to find out that my Yarn cache dir is C:\Users\<Name>\AppData\Local\Yarn\Cache\v6, deleted it, added it to Windows Defender exclusions, and ran the build again:

BUILD SUCCESSFUL in 2m 53s
29 actionable tasks: 25 executed, 4 up-to-date

:)