I’ve a very strange problem from some days…
I’m working on a Ionic 3 Angular 5 app
I make some changes on code, save it and run:
npm i
ionic cordova run browser -lc
Looking log on terminal i see that it’s running a previous code
I’ve tried to delete npm cache, close terminal or vs.code but nothing
Someone has same problem ?
Some help ?
It's strange, but try deleting the folder www or use ionic serve.
Related
I recently tried running flutter upgrade and it seemed to run successfully. But after that the flutter command itself stopped working. Every time I try to run a flutter command it gives this error
'sysctl -n hw.optional.arm64' returned unexpected output: ''
I'm using a MacBook Pro with an Intel i7 processor.
I couldn't find anything on this error online. I also tried doing a git reset and a git pull on the flutter (core) directory. Nothing seems to help.
What could the issue be?
I managed to fix it. For some reason after upgrading flutter the path variable got messed up, at least in my .zshrc file. So I had to go and add the usr/sbin path to the PATH variable. That's where the sysctl program sits and that's why it was giving an error that the output is empty.
Hope this helps someone.
I changed nothing, just worked on my Flutter Aplication, after the day i wanted to flutter run --release my app, but it didn't worked and i got this error message: Target file "lib\main.dart" not found. The day before everything worked fine. After a couple of times i tried it on another app, where i didn't changed something for a couple of days. But some of my other apps are working fine. The normal running in Android Studio is working normally on every app. Does anybody knwo what's the problem here?
My Error
My Directory
You are probably running your command on a different directory. Check your directory using pwd command on terminal.
Edit: As you use windows, make sure you open command line in your project directory.
See this tutorial.
https://www.lifewire.com/open-command-prompt-in-a-folder-5185505
pls help me out i'v tried everything. i did
flutter clean
flutter packages get
flutter packages upgrade
Restart Visual Studio (by using command: reload window)
take a look, my import package is not working...this is the image:
sorry, i already figure out myself. when a package is not working run the commands i provide, and then open your app (the app you are programming... well hit run). this will make VSCODE start actually running the commands and will run the {flutter pub get}. Try it out!
have a great one :)!
I tried to follow Get Stated here https://flutter.io/setup-windows/
And got
>flutter run
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.
How to fix?
You are not in the current working directory. Change the directory to your project directory and then run >>flutter run so that it could find pubspec.yaml.
Download the zip file (Assuming you have already done this)
Extract this zip to a safe place say "E://flutter/"
Open CMD and goto your workspace folder where to usually create your projects.
Run command flutter create <project_name>
cd <project_name>
Run command flutter run
Alternatively, you can always use a good IDE like Intellij or Android Studio which will automate such configs like #Rechard said.
If you are trying to run any command in terminal and getting error of pubspec.ymal not found then Close that session of terminal that you are currently using and open a new one...
I've also faced with this problem recently. I researched it a little bit and actually there is no particular solution for that problem.
But the way I solved it was:
1) Forget about the file which gives the error.
2) Create a new one like how you've created before.
3) After that call the flutter run thing again. It should work as it worked for me.
For me i just went to the terminal, cd to the directory where you want to get the dependencies and just run 'flutter pub get'.
Try pressing Ctrl+Shift+T to open new session.
I am installing ionic 2 on my Computer. Already installed Node js 0.12 with npm.
I succeed to install ionic 2 but when I check using my cmd it just gives Error "Ionic not recognized as external command"
The question is not clear enough. I would like you to tell more about the error.
Looking at the "not recognized as external command". It looks like you have not added ionic PATH as environment variable.
You can also try to clean the npm cache and re install ionic, it should work. Had a similar issue some time back. It had worked.