You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, just wanna ask
in section render content and getStaticProps on file [slug].tsx why in my code it keep saying module 'fs' not found but in blog list its working?
my node version is v14.17.6
and next is 10.0.3
./pages/blog/[slug].tsx:6:0
Module not found: Can't resolve 'fs'
4 | import Head from 'next/head'
5 | import { useRouter } from 'next/router'
6 | import fs from 'fs'
7 | import path from 'path'
8 | import matter from 'gray-matter'
9 | import renderToString from 'next-mdx-remote/render-to-string'
The text was updated successfully, but these errors were encountered:
Hi, just wanna ask
in section render content and getStaticProps on file [slug].tsx why in my code it keep saying module 'fs' not found but in blog list its working?
my node version is v14.17.6
and next is 10.0.3
./pages/blog/[slug].tsx:6:0
Module not found: Can't resolve 'fs'
4 | import Head from 'next/head'
5 | import { useRouter } from 'next/router'
The text was updated successfully, but these errors were encountered: