Hi, I'm compiling a Kotlin react application that'...
# react
s
Hi, I'm compiling a Kotlin react application that's a couple months old, and
external fun require(path: String): String
does not work anymore; I get the error:
Uncaught ReferenceError: require is not defined
. Does anyone know the cause?
t
In which package it was?
s
I defined the
require
function myself. Previously this worked: webpack replaced the require statement with file contents (raw-loader and svg-inline-loader), but it seems now it doesn't and JS does not recognize the require statement
t
Do you have custom configuration for svg-inline-loader?
s
Yeah I use your kfc-plugins that generates a patch.js in the webpack.config.d folder that specifies svg-inline-loader
t
It's replaced with Gradle plugin, which generates
Icons
object
s
Okay thanks I will have a look at that