I am using bootstrap 3.3.0 in my rails app but is showing below error
Error compiling asset application.css: Sass::SyntaxError: Undefined mixin 'hide-text'.
(in ../app/assets/stylesheets/application.css.scss)
Served asset /application.css - 500 Internal Server Error
Here is my application.css.scss
#import "bootstrap";
#import "bootstrap-timepicker";
#import "bootstrap-datepicker";
#import "globals/functions";
#import "globals/mixins";
#import "globals/variables";
/*#import "base";
#import "layout";*/
#import "style";
#import "vistyle";
#import "framework_and_overrides";
#import "modules/events";
#import "modules/gallery";
#import "modules/forms";
Sass::SyntaxError: Undefined mixin 'hide-text'.
hide-text is written in modules/events.css.scss file.
Its working fine with bootstrap '2.3.1.0' but not for bootstrap '3.3.0' .
It may have something to do with the version of Rails you are using. You have not specified it, but I'll assume it is Rails 3.2 (as I've had the same issue with it.) I also assume that you have the gem in the 'assets' group. If that's the case your app looks very similar to the one I've had the same issue with.
Basically this is because by default in Rails 3.2, assets group gems are not required in production.
For details, see the updated docs in the bootstrap-sass README:
https://github.com/twbs/bootstrap-sass/commit/1a4ff080af2be55f1c17b5d2c99eb5f31aaf2e97
Related
After unsuccessful installing MS code push module on React Native 0.68.0 app/Monterey 12.4/Xcode 13 , react-native run-ios starts to throw error:
Build input file cannot be found: '/Users/macair/Documents/code/js/xyz_app6/ios/xyz_app6/AppDelegate.m'
Here is the AppDelegate.m:
#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>
#interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate>
#property (nonatomic, strong) UIWindow *window;
#end
The same error above appears in Xcode build as well. It seems to be a common issue with IOS but solutions online seems not working in my app. There is AppDelegate.m for project under Xcode and was unchanged (change was removed). What is missing here?
Change all AppDelegate.m into AppDelegate.mm inside project.pbxproj (a file with temptation not to look into).
I'm bilding mobile app the following technologies.
react-native: v0.60.0
react-native-navigation: 3.0.0-alpha.2
And I build this app for iOS, then the following error message appears in the ReactNativeNavigation code.
React/RCTConvert.h file not found
The error file is Pods/Development Pods/ReactNativeNavigation/RNNOptions.h, and this is the content of it.
#import <UIKit/UIKit.h>
#import <React/RCTConvert.h>
#import "BoolParser.h"
#import "TextParser.h"
#import "NumberParser.h"
#import "DictionaryParser.h"
#import "ColorParser.h"
#import "ImageParser.h"
#import "IntNumberParser.h"
#import "DoubleParser.h"
#interface RNNOptions : NSObject
- (instancetype)initWithDict:(NSDictionary*)dict;
- (RNNOptions *)overrideOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)mergeInOptions:(RNNOptions *)otherOptions;
- (RNNOptions *)withDefault:(RNNOptions *)defaultOptions;
#end
I have already tried,
Following this tutorial
But it didn't work well, so I additionally tried these.
Insert pod 'ReactNativeNavigation', :path => '../node_modules/react-native-navigation' into ios/Podfile.
Run react-native link react-native-navigation and pod install in ios directory
Clean and rebuild the proejct in Xcode.
with react native 0.60+ you don't need to link react native navigation manually.
simply run react-native link react-native-navigation and cd ios; pod install
for more information please see this issue
I got GADBannerViewDelegate.h file not found error in TOLAdAdapterAdMobAds.h although i have already included that file as shown in image below. I have used
pod 'LARSAdController', '~> 3.0'
to install the pod file for it
Just replace
#import "GADBannerViewDelegate.h"
#import "GADBannerView.h"
with
#import <GoogleMobileAds/GoogleMobileAds.h>
This has to be done as GoogleMobileAds SDK is now a framework instead of static library.
After making this change, you may get an error at request.testing = YES; in TOLAdAdapterGoogleAds.m. To correct that, just replace that line with: request.testDevices = #[kGADSimulatorID]; and everything should work fine.
When I run the sencha command like so:
sencha app build production
I get an error which points to the following line in app.scss:
#import 'sencha-touch/default/all';
In my app I have the following folder:
\App\touch\resources\themes\stylesheets\sencha-touch\default
But there is no 'all' folder. Is my application structure broken or is there something else I am missing?
The error might be generated because there's no _all.scss inside
touch\resources\themes\stylesheets\sencha-touch\default
Contents of _all.scss are
#import 'core';
#import 'widgets';
Check application structure again or just create _all.scss manually and see if it solves problem.
Building an ios app using apache cordova 2.1. Building and styling is going fine but maps are not.
I found a plugin for the maps but simply cannot get it to work:
https://github.com/phonegap/phonegap-plugins/tree/master/iOS/MapKit
I also found an example html file but could :
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/MapKitPlug/example
1/
So i added the MapKit framework into xcode which was pretty straight forward:
http://blog.thinketg.com/blog/david-brainer-banker/xcode-4-tips-adding-frameworks-to-your-project
2/
Added the .m and .h files
3/
Added and linked the .js file to my index.html
4/
copied the example html above.
5/
Added the Mapkit to the .plist file as per the instructions
When I try to run the map I get the following errors:
2012-11-05 14:21:29.505 sawdaysApp[25398:c07] Multi-tasking -> Device: YES, App: YES
2012-11-05 14:21:30.895 sawdaysApp[25398:c07] CDVPlugin class MapKitView (pluginName: MapKitView) does not exist.
2012-11-05 14:21:30.895 sawdaysApp[25398:c07] ERROR: Plugin 'MapKitView' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-11-05 14:21:30.896 sawdaysApp[25398:c07] FAILED pluginJSON = [null,"MapKitView","showMap",[]]
2012-11-05 14:21:30.896 sawdaysApp[25398:c07] CDVPlugin class MapKitView (pluginName: MapKitView) does not exist.
2012-11-05 14:21:30.896 sawdaysApp[25398:c07] ERROR: Plugin 'MapKitView' not found, or is not a CDVPlugin. Check your plugin mapping in Cordova.plist.
2012-11-05 14:21:30.897 sawdaysApp[25398:c07] FAILED pluginJSON = [null,"MapKitView","setMapData",[{"diameter":1000,"offsetTop":25,"lon":-123.104446,"buttonCallback":"cbMapCallback","lat":49.281467999999997,"height":360,"atBottom":true}]]
I assuming that the error is with the MapKitView in the CDVPluggin, but really not sure.
Has anyone had any experience with this and succeeded?
THIS WORKS. AT LAST :)
1 - Follow this guide to start the app http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html
2 - Download and add mapkit plugin native files (all of them) in the plugins folder and the .js file in the www folder. https://github.com/phonegap/phonegap-plugins/tree/master/iOS/MapKit.
Make sure you drage the pluggins folder to the pluggins folder in xcode otherwise the app will not link the files properly.
3 - Whitelist * to whitelist all the domains and Add the plugin reference on Cordova.plist MapKitView as value and key
4 - Donwloaded and included into the sawdaysTestApp/pluggins folder JSONKit.h and JSONKit.m https://github.com/johnezang/JSONKit
5 - Change mapkit.h and .m
#ifdef CORDOVA_FRAMEWORK
#import <Cordova/CDVPlugin.h>
#else
#import "CDVPlugin.h"
#endif
to
#import <Cordova/CDVPlugin.h>
and
change mapkit.m
from
#ifdef CORDOVA_FRAMEWORK
// PhoneGap >= 1.2.0
#import <Cordova/JSONKit.h>
#else
// https://github.com/johnezang/JSONKit
#import "JSONKit.h"
#endif
to
#import "JSONKit.h"
Get the example from https://github.com/phonegap/phonegap-plugins/blob/master/iPhone/MapKitPlug/example/index.html. Copy and paste entire example into index.html.
7 - Change the index.html
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8" src="MapKitPlug.js"></script>
to//
<script type="text/javascript" src="cordova-2.1.0.js"></script>
<script type="text/javascript" charset="utf-8" src="MapKit.js"></script>
8 - Run the simulator. click the show map button.
I'd just like to add two things:
1, That as of Cordova 2.3.0 the filename
Cordova.plist
Is now
yourProject-Info.plist
yourProject being what ever your project name is.
2, I found that you still need to 'Link Binary With Libraries' by doing the following:
Click on your project
Select Build Phases
Click the arrow on Link Binary With Libraries
Click Add
Search for MapKit.framework and click Add