node-csvtojson
node-csvtojson copied to clipboard
Node's types should not be imported for module to be used in browser
/// <reference types="node" /> should be removed from d.ts, removing @types/node dependency should solve the issue.
Are you using Next? If you don't explictly use any of the file function stuff, then check out using this as your next.config.js:
/** @type {import('next').NextConfig} */
const nextConfig = {
...
webpack(config) {
config.resolve.fallback = {
...config.resolve.fallback, // if you miss it, all the other options in fallback, specified
// by next.js will be dropped. Doesn't make much sense, but how it is
fs: false, // the solution
}
return config
}
}
module.exports = nextConfig
No, I'm not using Next.