[SOLVED] Unable to resolve some modules: "node:fs"

Edit: Got the error when import file-type package

import { fileTypeFromFile } from "file-type";

and got the error:

Unable to resolve some modules:
  "node:fs" in                                
/banana/node_modules/strtok3/lib/FsPromise.js
(os.linux.x86_64)
  "node:buffer" in                            
/banana/node_modules/strtok3/lib/AbstractTokenizer.js
(os.linux.x86_64)
  "strtok3/core" in                           
/banana/node_modules/file-type/core.js
(os.linux.x86_64)
  "node:stream" in                            
/banana/node_modules/file-type/core.js
(os.linux.x86_64)
                                              
If you notice problems related to these missing modules, consider running:
                                              
  meteor npm install --save node:fs node:buffer strtok3 node:stream

I’m using Meteor 2.6.0 beta-4
What package i’m missing?

We are using the previous major version of this package because of these issues. Never got the chance to report to github

1 Like

Wow. Thank you very much. I install version file-type@16.5.3 and it works.