引入fs报错,应该怎么修改?

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'


慕盖茨4494581
浏览 3319回答 1
1回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Node.js