Comments (4)
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.
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.
@filipenevola would you be able to provide assistance here?
from cordova-plugin-meteor-webapp.
firstly try please
meteor remove-platform ios
meteor add-platform ios
from cordova-plugin-meteor-webapp.
Related Issues (20)
- Cannot find type 'METPlugin' in scope HOT 2
- Uncaught SyntaxError: Unexpected token => HOT 5
- cannot build with 1.6.3+ HOT 2
- HCP: Android files are not loaded, iOS works HOT 11
- iOS build fails on Xcode 10.2 / Swift 3 no longer supported HOT 21
- can i use this plugin without meteor? HOT 1
- [IOS] stops working after certain time
- [Android] Error: Could not create download directory for large files in public directory HOT 7
- Error message in XCode HOT 2
- GCDWebServer is 2 years old
- Asset /cordova.js not found in bundle HOT 8
- Missing version 1.7.0 tag/commit HOT 1
- IOS - Local Web server Crashes HOT 2
- Meteor 1.10.1 Assets cordova.js socket.io not found in bundle HOT 15
- [meteor 1.10.1] android's webapp plugin is unable to download a new mobile version once a change is detected HOT 1
- Webapp Forced Reload blank page
- cordova assets not found in android build HOT 7
- Meteor Cordova ProjectBuild.js Dependancies missing "cordova-common", "compare-func" HOT 4
- iOS 14: network retry when prompting for local network access HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-meteor-webapp.