If I introduce fs to report an error, how should I modify it?

const fs = require("fs");
require("fs"): in ./node_modules/babel-loader/lib?{"babelrc":false,"cacheDirectory":true,"presets":[["D://project//electronicv2//node_modules//babel-preset-vue-app//dist//index.common.js",{"targets":{"ie":9,"uglify":true}}]]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./pages/users/git.vue
Module not found: Error: Can"t resolve "fs" in "D:\project\electronicv2\pages\users"
Nov.10,2021

Is

vue cli2? Did you use webpack?

try adding:

to the webpack.base.config.js file
 node: {
     fs: "empty"
  }

clipboard.png



clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36ac9-405bd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36ac9-405bd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?