Home

Issue: 1485

I can't use fs package in pages

[issue link]

in /pages/blog/_slug.vue I write const fs = require(‘fs’)

the compiling error is:

ERROR  Failed to compile with 1 errors                                                   3:46:45 PM

This dependency was not found:

* fs in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./pages/blog/_slug.vue

To install it, you can run: npm install --save fs

then I install it by the notice. but the error not fixed

This question is available on Nuxt.js community (#c1321)