My issue in kotlin loader webpack plugin <https://...
# javascript
n
My issue in kotlin loader webpack plugin https://github.com/huston007/kotlin-loader/issues/2
h
@Nikita Kulikov Hello, I’m the original author of this repo. Unfortunately, it was kind of unsuccessful experiment and is not supported anymore. Nowadays the way to go is kotlin-webpack-plugin, please try it instead. I’ve added deprecation node to this repository, thanks. https://www.npmjs.com/package/kotlin-webpack-plugin
n
Please, mark deprecated repo 🙂
h
Yep, already. My fault. Thanks!
@Nikita Kulikov Don’t you want to try to build project using create-react-kotlin-app? https://github.com/JetBrains/create-react-kotlin-app
n
I not user react. With kotlin-webpack-plugin i have this error again. "unresolved reference: math"
Copy code
const KotlinWebpackPlugin = require('kotlin-webpack-plugin');
var path = require('path');
var webpack = require('webpack');

module.exports = {
    entry: 'kotlinApp', // kotlinApp is the default module name

    resolve: {
        modules: ['node_modules', 'kotlin_build']
    },

    module: {
        rules: [
            {
                test: /\.js$/,
                include: path.resolve(__dirname, '../kotlin_build'),
                use: ['source-map-loader'],
                enforce: 'pre',
            },
        ],
    },

    output: {
        path: __dirname + '/build',
        filename: 'build.js',
    },

    plugins: [
        new KotlinWebpackPlugin({
            src: __dirname + '/src',
        })
    ]
};
h
@Nikita Kulikov Can you please send us an archive with code sample that reproduces this issue?
n
h
@Nikita Kulikov looks like the issue source is kotlin-compiler 1.1.51 used by webpack-plugin. We are going to update it to 1.2 today or tommorow
n
Ok 👌
Can you write me when plugin update?
👌 1
h
@Nikita Kulikov There is my fault again,
kotin-webpack-plugin
has been renamed to
@jetbrains/kotlin-webpack-plugin
. It now uses Kotlin 1.2, could you please check it?
n
Yay!! All work! Big thanks. Update repo