#Getting Uncaught TypeError: The specifier “fs” was a bare specifier
1 messages · Page 1 of 1 (latest)
you can't import fs from the browser
It depends on what you're using fs for, but generally any file system access goes through the browser's File System API.
It's more restricted than the fs module though; for good reason, browsers don't want to give websites full access to the users file system
Ohk. Let me try it. Thanks for the link
is there any other alternative for import path from 'path' too?
You may want to look at a bundler