I have an Ionic app and am trying to use NGX-Bootstrap with it, but my app cannot build due to the way the package is organized.
sass: node_modules/ngx-bootstrap/datepicker/bs-datepicker.scss, line:
1
It's not clear which file to import for '#import "utils/scss/variables"'. Candidates:
utils/scss/variables.scss utils/scss/variables.css Please delete or rename all but one of these files.
L1: #import './utils/scss/variables';
L2: #import './utils/scss/mixins';
This issue mentions the problem, but claims it should be fixed in the next version. I am running v 2.0.2 (latest) and the error still remains.
This is my setup:
Ionic Framework: 3.9.2
Ionic App Scripts: 3.1.2
Angular Core: ^4.4.3
Angular Compiler CLI: 4.4.3
Node: 9.1.0
OS Platform: macOS High Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36
And I'm running typescript v 2.3.4.
Any assistance would be great.
Related
I have followed https://ionicframework.com/docs/native/network/ but it is not triggering when connecting or disconnecting from the network. Not in browser, dev app and not in phone.
I have checked this link https://forum.ionicframework.com/t/cordova-plugin-network-information-not-working/99271 and check https://www.youtube.com/watch?v=U9nVMSMimRQ
This is my dev environment
Ionic Framework: 3.9.2
Ionic App Scripts: 3.2.0
Angular Core: 5.2.11
Angular Compiler CLI: 5.2.11
Node: 10.13.0
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Add a bit of code base of what you have done for more help.
Also add your code under platform ready and test.
*Import platform service before doing this.
this.platform.ready().then(() => {
//Code
});
I don't like that I can go to http://localhost:8100/#/asdfasd and get the normal start page. I want that to be an error page.
I tried to implement this by creating a NoSuchPageComponent and setting rootPage to that in the AppComponent. (I also made NoSuchPageComponent#ionViewDidEnter navigate to the home page when no segment is present.)
This works when the browser navigates to http://localhost:8100/#/asdfasd, but if I first open any real page and then change the address bar to http://localhost:8100/#/asdfasd, I get the Ionic error handler showing "Uncaught (in promise): invalid views to insert"
Is there another way this is expected to be done?
Is there somewhere I can catch that error?
Does this have anything to do with lazy loading?
How can I make this work as I intend?
Here's the full error message:
Runtime Error
Uncaught (in promise): invalid views to insert
Stack
Error: Uncaught (in promise): invalid views to insert
at c (http://localhost:8100/build/polyfills.js:3:18260)
at Object.reject (http://localhost:8100/build/polyfills.js:3:17682)
at NavControllerBase._fireError (http://localhost:8100/build/vendor.js:46029:16)
at NavControllerBase._failed (http://localhost:8100/build/vendor.js:46017:14)
at http://localhost:8100/build/vendor.js:46072:59
at t.invoke (http://localhost:8100/build/polyfills.js:3:13979)
at Object.onInvoke (http://localhost:8100/build/vendor.js:4248:33)
at t.invoke (http://localhost:8100/build/polyfills.js:3:13919)
at r.run (http://localhost:8100/build/polyfills.js:3:9146)
at http://localhost:8100/build/polyfills.js:3:18750
Ionic Framework: 3.7.0
Ionic App Scripts: 3.0.1
Angular Core: 4.4.3
Angular Compiler CLI: 4.4.3
Node: 6.12.0
OS Platform: macOS Sierra
Navigator Platform: MacIntel
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36
I have started a clean project with ionic2 based on tabs template, by following the next steps:
$ ionic start <myapp> --v2
$ cd <myapp>
$ ionic serve
Then the output from ionic serve is just:
> ionic-hello-world# ionic:serve /home/luan/<myapp>
> ionic-app-scripts serve "--v2" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"
If I try to open localhost:8100 there's no response.
The files and code of the project are just the same as one using tabs template, but it's just don't wonking.
Could someone help?
UPDATE:
My ionic info
My system information:
Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v6.10.0
Xcode version: Not installed
Have you tried using
npm run ionic:serve
I have found the answer. It turns out, the 1.2.2 version of Ionic App Scripts (app-scripts) version was the problem. Just downgraded to 1.1.4 and works fine. The actual workaround:
in package.json, change
"#ionic/app-scripts": "1.2.2"
to
"#ionic/app-scripts": "1.1.4"
then run npm install again. It should show something like this:
[...]
- sentence-case#2.1.1 node_modules/sentence-case
- change-case#3.0.1 node_modules/change-case
ionic-hello-world# /home/luan/Projetos/prestacontas
└── #ionic/app-scripts#1.1.4 ## The problem was here
Make shure that #ionic/app-scripts is now 1.1.4, and not 1.2.2.
And that's it.
Here is a solution for you,,, :)
Most probably this can be an issue of updating. Because I opened two of my ionic projects. one is from late 2017. For that project live reload is working without an issue. The problem with my new project. I checked the "ionic info" and found that both are same other than the ionic framework version. my older one is v 3.7.1. unfortunately, that version not installing now. don't know exactly what the problem is.
However, I found a solution,
instead of "Ionic serve" command run the following command for the first time. then you will not need to run "ionic serve" each time.
npm run ionic:serve
I had the same error when I updated Ionic. I worked around it by using:
ionic serve --address localhost
The above solution to use "#ionic/app-script": "1.2.2" works to have it use localhost instead of 0.0.0.0. However it created other errors that were easily fixed by following the addition warnings.
"devDependencies": {
"#ionic/app-scripts": "1.2.2",
The one new error I still couldn't pinpoint yet is:
Error Close Runtime Error timeStamp.getDate is not a function Stack
TypeError: timeStamp.getDate is not a function
at HomePage.timeSince (http://localhost:8100/build/main.js:70141:33)
at SafeSubscriber._next (http://localhost:8100/build/main.js:70088:42)
at SafeSubscriber.__tryOrUnsub (http://localhost:8100/build/main.js:69844:16)
at SafeSubscriber.next (http://localhost:8100/build/main.js:69793:22)
at Subscriber._next (http://localhost:8100/build/main.js:69746:26)
at Subscriber.next (http://localhost:8100/build/main.js:69710:18)
at XMLHttpRequest.onLoad (http://localhost:8100/build/main.js:44518:38)
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:14051)
at Object.onInvokeTask (http://localhost:8100/build/main.js:27788:37)
at t.invokeTask (http://localhost:8100/build/polyfills.js:3:13987) Ionic Framework: 2.0.0-rc.2 Ionic Native: 2.2.3 Ionic App Scripts:
1.2.2 Angular Core: 2.1.1 Angular Compiler CLI: 2.1.1 Node: 6.9.1 OS Platform: Windows 10 Navigator Platform: Win32 User Agent: Mozilla/5.0
(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)
Chrome/56.0.2924.87 Safari/537.36
The app does run but that window popped up on Chrome and I had to close it before I could see the output of the app.
I am a beginer for gwt application when i am creating a sample application after all steps i am geting these errors in my Development mode window.
1.[ERROR] [mysecondproj] - Unable to initialize static dispatcher
2.[ERROR] [mysecondproj] - Failed to load module 'mysecondproj' from user agent 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/33.0.1712.2 Safari/537.36' at
127.0.0.1:63405
And also in browser one message is coming like
3.Plugin failed to connect to Development Mode server at 127.0.0.1:9997.
I am using jdk 7,eclipse(luna),plugin version-4.3,sdk version-2.7.0and app engine version-1.9.18.so please help me.
I ran into a similar problem, but I got errors that said
java.lang.NoSuchMethodError: org.obectweb.asm.MethodVisitor.vistMetodInsn(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)V
This ended up being a buildpath problem. To fix it I did the following:
Right click on your package in Eclipse>Build Path>Configure Build Path
Go to the Order and Export Tab
Select GWT SDK and move it up above the App Engine SDK [appengine-java-sdk]
I uploading bb10 app to appworld and I can select the following os version
1.0.0
1.0.3
1.0.6
1.0.7
1.0.8
2.0.0
2.0.1
2.1.0
10.0.0
10.0.10
10.1.0
10.2.0
Which one should I select? what does it depend?
Android support on BlackBerry is as follows:
v2.3.3 (Gingerbread):
BlackBerry PlayBook (v 1.x - 2.x)
BlackBerry 10.0 - 10.1
v4.2.2 (Jelly Bean):
BlackBerry 10.2 +
<= 2.x : It concerns Playbooks only, it supports Android, Flash, Webworks or native but not cascades.
= 10.x : It concerns BB10 phones devices. If you develop with cascades, just take care that you are not using 10.0 unexistant functionnalities (such as validators, ...) by testing with a simulator.