intro-kotlin-mutliplatform icon indicating copy to clipboard operation
intro-kotlin-mutliplatform copied to clipboard

jsRun does not work for windows, upgrade the kotlin plugin

Open jakubgwozdz opened this issue 5 years ago • 0 comments

When running gradlew jsRun "SyntaxError: missing ) after argument list" happens

C:\Users\gwozd\IdeaProjects\intro-kotlin-mutliplatform>gradlew.bat jsRun

> Configure project :
Kotlin Multiplatform Projects are an experimental feature.

> Task :jsBrowserRun FAILED
C:\Users\gwozd\IdeaProjects\intro-kotlin-mutliplatform\build\js\packages\kotlin-fractals2-handson\node_modules\.bin\webpack-dev-server:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
          ^^^^^^^

SyntaxError: missing ) after argument list
    at new Script (vm.js:80:7)
    at createScript (vm.js:274:10)
    at Object.runInThisContext (vm.js:326:10)
    at Module._compile (internal/modules/cjs/loader.js:664:28)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
    at startup (internal/bootstrap/node.js:283:19)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jsBrowserRun'.

switching from kotlin("multiplatform") version "1.3.40" to 1.3.61 fixes the problem

jakubgwozdz avatar Jan 11 '20 19:01 jakubgwozdz