How to fix "zlib.js:51 Z_MIN_MEMLEVEL error"? - angular7

On ng serve, i receive error' zlib.js:51 Z_MIN_MEMLEVEL, 2¿¥ 0¿¥%¬ ^', yesterday everything was working fine, is something changed in npm ? please see error image attached
error

Related

Fresh rails 6 app won't deploy on heroku due to 'error Command "webpack" not found'

I just created a new rails 6 app and getting the 'error Command "webpack" not found' message when i try to push to Heroku for the first time. I tried everything:
- regenerating the bins(including webpacker)
- adding nodeJS and Ruby to Heroku
Nothing works, i still get the same error message. Does anyone have any clue? I also want to precise that I've made sure i applied all the solutions presented in the questions looking like mine.
Thanks in advance.
Sounds like you need to run npm install or yarn install on the server.
Whenever a node module like webpack says it "can't be found", this usually means it's not installed yet.

Failed to load packages - Dart Angular Tutorial

I tried to follow the tutorial of Angular with Dart.
Everything worked fine until I got to the navigation chapter.
When I run the project with webstorm and chromium I always get this error.
I also tried to run the solution repo but I get the same error.
It seems like these packages browser / angular etc. are not loaded.
Perhaps there are some restrictions by webstorm?! The funny thing is it worked occasionally on the first run but when I refreshed the page in the browser the error always comes back.
http://localhost:63342/toh-5-master/web/packages/browser/dart.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:63342/toh-5-master/web/packages/angular/angular.dart Failed to load resource: the server responded with a status of 404 (Not Found)
package:angular/angular.dart:1 An error occurred loading file: package:angular/angular.dart
http://localhost:63342/toh-5-master/web/packages/angular_router/angular_router.dart Failed to load resource: the server responded with a status of 404 (Not Found)
package:angular_router/angular_router.dart:1 An error occurred loading file: package:angular_router/angular_router.dart
http://localhost:63342/toh-5-master/web/packages/angular_tour_of_heroes/app_component.dart Failed to load resource: the server responded with a status of 404 (Not Found)
package:angular_tour_of_heroes/app_component.dart:1 An error occurred loading file: package:angular_tour_of_heroes/app_component.dart
EDIT
The things above are working now because I changed to this repo:
github.com/angular-examples/toh-5/tree/5-dev which works with Dart 2.
Right now I have another problem with the new 5-dev repo.
Here is my console of pub serve. It says the main.template.dart is missing.
(I'm using the Dart version 2.0.0-dev.44.0.)
Does anyone how to fix this problem??
Compiling angular_tour_of_heroes|web/main.dart...
[web] GET styles.css => (cached) angular_tour_of_heroes|web/styles.css
[Error from Dart2JS on angular_tour_of_heroes|web/main.dart]:
file:///C:/xampp/htdocs/flutterprojects/toh-5-5-dev/web/main.template.dart: Could not find asset angular_tour_of_heroes|web/main.template.dart.
[Info from Dart2JS]:
Took 0:00:03.911463 to compile angular_tour_of_heroes|web/main.dart.
Build completed with 1 errors.
[web] GET main.dart.js => Could not find asset angular_tour_of_heroes|web/main.dart.js.
[web] GET index.html => angular_tour_of_heroes|web/index.html
When I run it directly with the console I get the following error.
> pub serve --web-compiler=dartdevc
Build completed successfully
[web] GET => angular_tour_of_heroes|web/index.html
[web] GET styles.css => angular_tour_of_heroes|web/styles.css
Unable to find module for angular|lib/src/bootstrap/modules.template.dart
Unable to find module for angular|lib/src/bootstrap/modules.template.dart
Unable to find module for angular|lib/src/bootstrap/modules.template.dart
For Angular 4 example apps
Load failures like this can happen if you have an error in your app that is preventing dart2js from compiling it successfully. Are any errors or warnings being reported by pub in WebStorm's Pub Serve tab? Also make sure that you are using version 1.24.3 of the Dart SDK.
I'm unable to reproduce the problem you mention. I've downloaded the project zip, and it runs fine from both the command line and WebStorm (even after making some edits and refreshing). Note that the first time you load the app, you might get a 404 because pub might not have finished compiling your app yet.
For Angular 5 example apps
As you've found out, if you'd like to try out an example using Angular 5-alpha, switch to the 5-dev branch of the repo. Ensure that you are using at least a Dart 2-dev version of the SDK.
The Dart 2 SDK no longer has support for pub build and pub serve. As of 2018Q2 you cannot use WebStorm to build and serve Angular 5 apps. Instead, you'll need to do that from the command line:
pub run build_runner serve
Then open localhost:8080 in Chrome.
For the full details see the Angular 5 Setup for Development.
Angular 5 is nearly out. I can imagine that the TOH hasn't quite caught up. You can look at https://github.com/dart-lang/site-webdev.git to see the known issues.

IBMWebsphere gives SRVE0190E: File not found ERROR

I am using docker to deploy and run my application. Everything is fine during deployment and running my application.I am using dockerDeploy and restartWas commends in order to deploy and run my application.
After I run my application , my login and password comes to my screen. Everything is fine at that step as well but after I write my login and password, I come across with the error below. I did not change anything in the code but after I restart docker I come across with the following error.
I restarted docker and also computer several times but I still come across with that. I would be glad if you can help me.
Regards
Error Page Exception
SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below.
Original Exception:
Error Message: SRVE0190E: File not found: {0}
Error Code: 404
Target Servlet:
Error Stack:
com.ibm.ws.webcontainer.webapp.WebAppErrorReport: SRVE0190E: File not found: {0}

Jenkins: Add build step doesn't work

I have a strange error that I am not able to add anything in build step or post build action in my jenkins.
I get the following error when I inspect the same.
Error 404 Not Found
HTTP ERROR 404 Problem accessing
/$stapler/bound/5a0d5381-ed63-4616-8dcb-bbc1edac79b3/render. Reason:
Not FoundPowered by
Jetty://
I have tried the following,
Clearing browser data, updating firefox version from 30.0 to 34.0
Upgrading jenkins
Restarting it
Manually try to edit config.xml to add build step.
Creating the new job also has the same issue. Clicking on the add build steps does nothing. Inspecting for errors gives me the above error. Couldn't enable stapler logging also.
Nothing is successful. Any help on this would be highly appreciated.

sample code not working in dart editor

I download dart
I start the editor and choose the 'clock' sample
I attempt to run the sample
I get the message "Failed to load resource: the server responded
with a status of 503 (Service Unavailable)"
I've already tried these things:
I've followed these steps at different times with the same effect, so i don't think it was just a the pub server going down.
I tried running pub install but I get the message "Pub install failed, [1] Resolving dependencies...Timed out trying to find package "browser" at https://pub.dartlang.org."
I tried running pub update but got a similar message "Pub update failed, [1] Resolving..... etc."
I have checked that my internet connection is working.
My guess is that this is proxy-related. Issue 5454 is marked as "Fixed", but there's still some discussion going on after it was marked as Fixed, so I'm not completely sure what the status is today.

Resources