kktjs / kkt

Create React apps with no build configuration, Cli tool for creating react apps.
https://kktjs.github.io/kkt
MIT License
49 stars 11 forks source link

Failed to parse source map from #446

Closed jaywcjlove closed 9 months ago

jaywcjlove commented 9 months ago

Solution 1

"start": "GENERATE_SOURCEMAP=false react-scripts start",

Solution 2

Modify .kktrc.ts config.

import { LoaderConfOptions, WebpackConfiguration } from 'kkt';

export default (conf: WebpackConfiguration, env: 'production' | 'development', options: LoaderConfOptions) => {
  conf.ignoreWarnings = [
    {
      module: /node_modules[\\/]parse5[\\/]/,
    }
  ];
  return conf;
};