I recently started a project using the latest version of Meteor. I added a new package by running the command:
meteor npm install --save name_of_package
Since this package is meant for the client side, I created a file called mypackage.js inside the /client folder and imported the package using:
import name_of_package from 'name_of_package';
Although Meteor starts successfully, I encountered an error when trying to connect, which states:
graceful-fs.js:157 Uncaught TypeError: Cannot read property 'prototype' of undefined
The problematic code snippet in graceful-fs.js can be found on lines 156-158:
var fs$ReadStream = fs.ReadStream
ReadStream.prototype = Object.create(fs$ReadStream.prototype)
ReadStream.prototype.open = ReadStream$open
Any assistance in resolving this issue would be highly appreciated. I am unsure of what exactly I might be overlooking.
Thank you!