Build failing, asking for Kotlin dependencies... kotlin not in use - codenameone

even though the app works just fine using the simulator... I'm unable to send my code to the compilation server.
If I use the upload button in Intellij, ant will say that compilation failed and that I need to see the log. If I try running the build manually I get a missing kotlin dependency error... but I'm not using Kotlin and this file is IDE generated.
I'm not sure how to tackle this problem
BUILD FAILED
J:\ClientePersonal\build.xml:10: The following error occurred while executing this line:
jar:file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202018.3/plugins/Kotlin/kotlinc/lib/kotlin-ant.jar!/org/jetbrains/kotlin/ant/antlib.xml:2: taskdef A class needed by class org.jetbrains.kotlin.ant.Kotlin2JvmTask cannot be found: kotlin/TypeCastException

Related

Stream, Util, and Crypto could not be found within the project or in node_modules

I am trying to connect my react native android app to an existing SQL Server. But the problem is, I keep getting an error that says "stream could not be found within the project or in these directories: node_modules". And if I try installing the module, another error occurs regarding util could not be found. Up until I've installed crypto, the error changes. It would say something about
error: Error: While trying to resolve module crypto from file
C:\react\connectDatabase\node_modules\tedious\lib\connection.js, the
package C:\react\connectDatabase\node_modules\crypto\package.json
was successfully found. However, this package itself specifies a
main module field that could not be resolved
(C:\react\connectDatabase\node_modules\crypto\index.js. Indeed, none
of these files exist:
*C:\react\connectDatabase\node_modules\crypto\index.js(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
*C:\react\connectDatabase\node_modules\crypto\index.js\index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
at DependencyGraph.resolveDependency (C:\react\connectDatabase\node_modules\metro\src\node-haste\DependencyGraph.js:311:17)

Suprising Babel error after upgrading a Node.js module (monaco-editor)

I'm working on an React-based web application (created using CRA), so it uses Babel to transpile and pack our code and Node.js modules. Creating the production build worked fine until I upgraded the monaco-editor Node.js module from 0.20.0 to 0.21.2. After that an error started showing up, which is totally unexpected and probably caused by (valid) code changes in monaco-editor:
Creating an optimized production build...
Failed to compile.
./node_modules/monaco-editor/esm/vs/editor/contrib/suggest/wordDistance.js
Error: <path>/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/wordDistance.js: unknown Expression of type "ClassExpression"
at Array.forEach (<anonymous>)
I'm pretty sure this is not a failure in the monaco-editor Node.js module and my web search brought me to some code that made me think this is an error printed by Babel. Beside others, I found this pull request for Babel which fixes a very similar error message.
There's no other information in the error message, so I cannot be 100% sure, and therefore I would also very much welcome anything I could use to get more context for this error message.
I created a minimal example which produces this behavior and allows to prove that the monaco-editor upgrade is the culprit: https://github.com/mike-lischke/babel-test.
But since this is valid JavaScript code, I supposed the real culprit is Babel, not being able to deal with the used syntax (or maybe I need a newer version, but since this is all integrated in CRA it's tricky to use newer versions of automatically installed components).
At the time being there's no other way than to return to the previous version of Monaco editor.

Error getting while building react kotlin app using IntelliJ

I've created a simple react app using create-react-kotlin-app. After successful npm start, I tried to get a build of the project using IntelliJ IDEA's Build -> Build Project, but it fails stating
Error:(16, 44) Kotlin: Can't access property 'reactLogo' marked with #JsModule annotation from non-modular project
What am I missing here ?
NOTE: I haven't done any modification in the template comes with create-react-kotlin-app. The project runs successfully, problem only exist when I try to get a build.
I got managed to fix this issue via terminal.
From the project root, run
react-scripts-kotlin build
This will automatically creates a build folder with production ready files.

Module build failed - read only error

Trying to create a React app without using create-react-app so that I can learn a bit more and know what's going on in the background.
I'm trying to get webpack to work but getting this error that appears to be linked to redux-form when running webpack command.
I've just copied code from their site so not sure what the issue is?

Facing issue "Error Code: EPERM" while conducting a build for hawtio which includes typescript and Angular files

I am getting this issue during a build on my project. I am trying to modify the typescript and angular files in Hawtio API.
It gives the error message as Error Code : EPERM.
Using --force and other similar commands, goves successful build but doesnt give required output.
Below is the screenshot of the prompt.
It does not specify any errors but the build fails everytime.
Can anyone suggest what should be the approach to rectify it?
PhantomJs on windows machine usually causes this issue. Issue log related to the same.

Resources