GithubHelp home page GithubHelp logo

Failed to install 'cordova-plugin-meteor-webapp': Using "requireCordovaModule" to load non-cordova module "fs" is not supported. about cordova-plugin-meteor-webapp HOT 4 CLOSED

myoneflag avatar myoneflag commented on June 6, 2024 1
Failed to install 'cordova-plugin-meteor-webapp': Using "requireCordovaModule" to load non-cordova module "fs" is not supported.

from cordova-plugin-meteor-webapp.

Comments (4)

jnurkka avatar jnurkka commented on June 6, 2024 1

Having the same issue/similar issue after updating to meteor 1.11. (also the first time building with Xcode 14, maybe that could also be an issue?):

While preparing Cordova project for platform iOS:
   Cordova error: Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
   (If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration. You can try running again with the --verbose option to help diagnose the issue.)

Running with --verbose isn't providing any useful outputs, unfortunately.

Xcode version: 12.0.1
Meteor: 1.11.1
cordova-plugin-meteor-webapp: 1.9.1

EDIT: Tried to do meteor remove-platform iOS && meteor add-platform ios --verbose and got the following error message:

%% Install complete for cordova-plugin-meteor-webapp on ios.
%% Finding scripts for "after_plugin_install" hook from plugin cordova-plugin-meteor-webapp on ios platform only.
%% Executing script found in plugin cordova-plugin-meteor-webapp for hook "after_plugin_install": plugins/cordova-plugin-meteor-webapp/scripts/iosAddBridgingHeader.js
%% Failed to install 'cordova-plugin-meteor-webapp': Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
    at Context.requireCordovaModule (/Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/hooks/Context.js:57:15)
    at module.exports (/Users/jaakko/Cliniserve/CARE/patient/.meteor/local/cordova-build/plugins/cordova-plugin-meteor-webapp/scripts/iosAddBridgingHeader.js:2:20)
    at runScriptViaModuleLoader (/Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
    at runScript (/Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
    at /Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
    at /Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40
=> Errors executing Cordova commands:         
                                              
   While adding platform iOS to Cordova project:
   Cordova error: Using "requireCordovaModule" to load non-cordova module "fs" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
   at Context.requireCordovaModule
   (/Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/hooks/Context.js:57:15)
   at module.exports (/Users/jaakko/Cliniserve/CARE/patient/.meteor/local/cordova-build/plugins/cordova-plugin-meteor-webapp/scripts/iosAddBridgingHeader.js:2:20)
   at runScriptViaModuleLoader
   (/Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
   at runScript
   (/Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
   at
   /Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
   at
   /Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40
   => awaited here:
   at Function.Promise.await
   (/Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
   at /tools/cordova/project.js:452:7
   at
   /Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40
   => awaited here:
   at Function.Promise.await
   (/Users/jaakko/.meteor/packages/meteor-tool/.1.11.1.1e232v5.7xql++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
   at CordovaProject.runCommands (/tools/cordova/project.js:880:22)
   at CordovaProject.addPlatform (/tools/cordova/project.js:448:10)
   at CordovaProject.ensurePlatformsAreSynchronized (/tools/cordova/project.js:479:12)
   at /tools/cli/commands-cordova.js:53:20
   at Object.capture (/tools/utils/buildmessage.js:283:5)
   at Object.main.captureAndExit (/tools/cli/main.js:273:29)
   at doAddPlatform (/tools/cli/commands-cordova.js:35:8)
   at Command.func (/tools/cli/commands-cordova.js:124:5)
   at /tools/cli/main.js:1528:15
   (If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration. You can try running again with the --verbose option to help diagnose the issue.)

from cordova-plugin-meteor-webapp.

jnurkka avatar jnurkka commented on June 6, 2024 1

firstly try please
meteor remove-platform ios
meteor add-platform ios

@myoneflag This didn't work for me (see my comment above), but I managed to fix this issue by completely removing my local meteor installation (on Mac you can find it in /Users/youruser/.meteor/ folder) and then installing meteor again. After that the build succeeded.

from cordova-plugin-meteor-webapp.

jnurkka avatar jnurkka commented on June 6, 2024

@filipenevola would you be able to provide assistance here?

from cordova-plugin-meteor-webapp.

myoneflag avatar myoneflag commented on June 6, 2024

firstly try please
meteor remove-platform ios
meteor add-platform ios

from cordova-plugin-meteor-webapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.