Meteor missing modules

hi everyone can you help me with this error

PS C:\Users\Ashraf\Desktop\app> meteor add-platform android
node:internal/modules/cjs/loader:1228
throw err;
^

Error: Cannot find module ‘@babel/parser’
Require stack:

  • C:\Users\Ashraf\node_modules@meteorjs\reify\lib\parsers\babel.js
  • C:\Users\Ashraf\AppData\Local.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\static-assets\server\runtime.js
  • C:\Users\Ashraf\AppData\Local.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\tool-env\install-reify.js
  • C:\Users\Ashraf\AppData\Local.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\tool-env\install-babel.js
  • C:\Users\Ashraf\AppData\Local.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at mod.require (C:\Users\Ashraf\node_modules@meteorjs\reify\lib\runtime\index.js:30:33)
    at require (node:internal/modules/helpers:179:18)
    at Object. (C:\Users\Ashraf\node_modules@meteorjs\reify\lib\parsers\babel.js:3:21)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions…js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Mp.load (C:\Users\Ashraf\AppData\Local.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\static-assets\server\runtime.js:37:33) {
    code: ‘MODULE_NOT_FOUND’,
    requireStack: [
    ‘C:\Users\Ashraf\node_modules\@meteorjs\reify\lib\parsers\babel.js’,
    ‘C:\Users\Ashraf\AppData\Local\.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\static-assets\server\runtime.js’,
    ‘C:\Users\Ashraf\AppData\Local\.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\tool-env\install-reify.js’,
    ‘C:\Users\Ashraf\AppData\Local\.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\tool-env\install-babel.js’,
    ‘C:\Users\Ashraf\AppData\Local\.meteor\packages\meteor-tool\3.0.3\mt-os.windows.x86_64\tools\index.js’
    ]
    }

Node.js v20.17.0

1 Like

We have identified this issue, and as part of next release we plan to have a fix for it. I stronly think this is related wth Meteor 3 add-platform android breaks meteor installation on windows 11, even outputing different module error.

Thanks for the report.

1 Like

There has been a full review on Meteor Cordova when working in Windows environments. The Meteor Cordova has been fully reviewed for Windows environments. The issue mentioned, along with others found during testing, has been resolved. Documentation for Cordova on Windows has also been updated.

Release 3.0.4 is now available. Run meteor update --release 3.0.4 to start using it. Please consider reinstalling Meteor completely, as these changes involve dev_bundle modifications that may only be effective on clean installations. (npx meteor@latest uninstall and then npx meteor).

Related PRs