Mendix Native: Module parse failed, Unexpected character

Mendix Widget Issue

In Mendix Native Pluggable Widget, you need to update the native webpack file, If you are get the following error “Module parse failed, Unexpected character”.

File Name: node_modules\@mendix\pluggable-widgets-tools\configs\webpack.native.config.js

Add the below lines of code into the module object,

 { test: /\.png$/, loader: "url-loader?limit=100000" }
 { test: /\.jpg$/, loader: "file-loader" }