@Edgy’s webpack solution here Remove the "comma" number separator from the Id field - #12 by Edgy worked for me on Strapi v4.19.1, also with strapi develop (at least, after I did strapi build once).
I had to make one change to webpack.config.js’s way of accessing webpack because I got an error (problem & solution ref):
"use strict";
const webpack = require("webpack");
/* eslint-disable no-unused-vars */
module.exports = (config) => {
// Replace Built-in NumberInput to remove comma
// https://forum.strapi.io/t/remove-the-comma-number-separator-from-the-id-field/24043/11
config.plugins.push(new webpack.NormalModuleReplacementPlugin(/.*design-system\/dist\/NumberInput\/NumberInput\.mjs$/, `${__dirname}/webpack/CustomNumberInput.mjs`));
return config;
};;
- Even though you may be using ES modules in the rest of your project (like me), use the
requireimport here. - You should still follow the rest of Edgy’s instructions.
Thanks Edgy!