When I try to import the fs module in my own module like import * as fs from 'fs'
the following error in the browser console comes:
Uncaught TypeError: Failed to resolve module specifier "fs". Relative references must start with either "/", "./", or "../"
.
Using require
or using a relative path to the module like ./node_modules/fs
will not work, is there any other way of importing the fs module correctly?