Updating from Angular11 to 13 generates error Data path "" must NOT have additional properties(styleext) - angular-schematics

I have checked out the following prescriptions for this problem and they did not resolve my issue. I upgraded from angular 11 to 13 following the procedure on the Angular official website which went well. Then Itried to generate a component and the issues started.

Run this at the command prompt: "ng config -g schematics.#schematics/angular:component.styleext undefined"

Related

When using "npm run watch" the webpack get compiled with 2 erros and 6 warnings

I'm trying to use Laravel CMS for my portfolio when using the exact same repo on my mac I get no errors or warnings, but when I try using it on my Windows PC I get 6 warning and 2 errors. I'm a beginner level developer, so I don't really know how to read those warnings/errors.
Edit 1:
I forgot to mention that the path i used at first was public/images/<image.png> and the same error occured.
Aplication version's:
Php: 8.1.5
Laravel: 9.11.0
npm: 8.5.5
Here is the error snippet:
npm run watch
> watch
> mix watch
Error: Can't resolve '../../storage/app/resources/images/achtergrond.png' in 'C:\portfolio\resources\css'
at finishWithoutResolve (C:\node_modules\enhanced-resolve\lib\Resolver.js:309:18)
at C:\node_modules\enhanced-resolve\lib\Resolver.js:386:15
at C:\node_modules\enhanced-resolve\lib\Resolver.js:435:5
at eval (eval at create (C:\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:16:1
)
at C:\node_modules\enhanced-resolve\lib\Resolver.js:435:5
at eval (eval at create (C:\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:27:1
)
at C:\node_modules\enhanced-resolve\lib\DescriptionFilePlugin.js:87:43
at C:\node_modules\enhanced-resolve\lib\Resolver.js:435:5
at eval (eval at create (C:\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1
)
at C:\node_modules\enhanced-resolve\lib\Resolver.js:435:5
at processResult (C:\node_modules\webpack\lib\NormalModule.js:758:19)
at C:\node_modules\webpack\lib\NormalModule.js:860:5
at C:\node_modules\loader-runner\lib\LoaderRunner.js:400:11
at C:\node_modules\loader-runner\lib\LoaderRunner.js:252:18
at context.callback (C:\node_modules\loader-runner\lib\LoaderRunner.js:124:13)
at Object.loader (C:\node_modules\css-loader\dist\index.js:155:5)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
1 ERROR in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack compiled with 2 errors and 6 warnings
If you need any more information just send me a message.
Thanks in advance!

Strapi - Unable to "Add Content Type"

When I click on, I just have blanck page at the url http://localhost:1337/admin/plugins/content-type-builder/#create::contentType::baseSettings
I use the v3.0.0-alpha.14.3 version.
Node version v8.12.0
NPM version 6.4.1
I use MongoDB.
I have this errors in Chrome console
main.js:16 Error: Minified React error #188; visit
https://reactjs.org/docs/error-decoder.html?invariant=188 for the full
message or use the non-minified dev environment for full errors and
additional helpful warnings.
at r (main.js:11)
at o (main.js:11)
at Ie (main.js:11)
at Fe (main.js:11)
at Object.findDOMNode (main.js:19)
at t.updateStatus (main.js:32)
at t.componentDidMount (main.js:32)
at tn (main.js:16)
at en (main.js:16)
at Qo (main.js:16)
I had exactly the same issue. I solved it by running
npm run setup
Hope this helps !

Can't resolve web-animations-js in ASP.NET Boilerplate template [duplicate]

This question already has answers here:
ASP.NET Boilerplate Angular Project Error when npm start
(2 answers)
Closed 5 years ago.
I created a new project from the ASP.NET Boilerplate 3.0.0 template today (10 Oct 2017) and I ran yarn install in the \angular folder.
I then ran npm start and I get the error message:
ERROR in ./src/polyfills.ts
Module not found: Error: Can't resolve 'web-animations-js' in 'C:\Source\asipsa\angular\src'
resolve 'web-animations-js' in 'C:\Source\asipsa\angular\src'
Parsed request is a module
using description file: C:\Source\asipsa\angular\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: C:\Source\asipsa\angular\package.json (relative path: ./src)
I figured out the problem. The startup template is missing a dependency for web-animations-js.
To fix run yarn add web-animations-js and then you can run npm start and it will run correctly.

Ionic build android failed with 403 Http respose from Gradle, JAVA_HOME not valid

I am using Windows 7X64 machine and trying to build Andriod application using cordova/ionic CLI v1.5.5. I am getting this error that I couldn't solve.
"You may not have the required environment or OS to build this project"
with commands ionic build android and cordova build android. The command ionic platform add android was successful. I am working with Android sdk (API 22) using the Android SDK Manager. I also made sure that PATH variable is correctly set.
Full transcript of process is:
C:\Users\ddevkota\Desktop\freshIonic>ionic build android
Running command: "C:\Program Files\nodejs\node.exe" C:\Users\ddevkota\Desktop\fr
eshIonic\hooks\after_prepare\010_add_platform_class.js C:\Users\ddevkota\Desktop
\freshIonic
add to body class: platform-android
Running command: cmd "/s /c "C:\Users\ddevkota\Desktop\freshIonic\platforms\andr
oid\cordova\build.bat""
ANDROID_HOME=C:\Users\ddevkota\AppData\Local\Android\sdk
JAVA_HOME=C:\Progra~1\Java\jdk1.7.0_15
Running: C:\Users\ddevkota\Desktop\freshIonic\platforms\android\gradlew cdvBuild
Debug -b C:\Users\ddevkota\Desktop\freshIonic\platforms\android\build.gradle -Do
rg.gradle.daemon=true
Downloading http://services.gradle.org/distributions/gradle-2.2.1-all.zip
Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Serv
er returned HTTP response code: 403 for URL: http://services.gradle.org/distribu
tions/gradle-2.2.1-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL:
http://services.gradle.org/distributions/gradle-2.2.1-all.zip
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
nection.java:1625)
at org.gradle.wrapper.Download.downloadInternal(Download.java:59)
at org.gradle.wrapper.Download.download(Download.java:45)
at org.gradle.wrapper.Install$1.call(Install.java:60)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:65)
... 3 more
C:\Users\ddevkota\Desktop\freshIonic\platforms\android\cordova\node_modules\q\q.
js:126
throw e;
^
Error code 1 for command: cmd with args: /s /c "C:\Users\ddevkota\Desktop\freshI
onic\platforms\android\gradlew cdvBuildDebug -b C:\Users\ddevkota\Desktop\freshI
onic\platforms\android\build.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (C:\Users\ddevkota\AppData\Roaming\npm\node_modules
\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:134:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
Thanks for help in advance.
NOTE: This turns out to be a permission issue in client (403). I connected my machine to different network and it started working. All build process. If you wanna do it manually here is how far I got.
Solution for not Valid JAVA_HOME
After spending days and uninstalling all versions of java, reinstalling only one version and setting up Environment VariableJAVA_HOME as C:\Program Files\Java\jdk1.7.0_15 I solved the problem.
However there was another issue of ionic build android error when downloading gradle.
This was solved as I added gradle to my project offline.
Solution for not Gradle 403 Http response
Do the following:
After downloading gradle from issued link (here is https://services.gradle.org/distributions/gradle-2.2.1-all.zip) paste it in somewhere likes myApp\platforms\android\gradle\gradle-2.2.1-all.zip and in build.js from myApp\platforms\android\cordova\lib\build.js find this:
var distributionUrl = 'distributionUrl=https://services.gradle.org/distributions/gradle-2.2.1-all.zip';
And replace it with your own file's location:
var distributionUrl = 'distributionUrl=../gradle-2.2.1-all.zip';
Still working on build and will keep on posting the solution. A thread about other issues is created in ionic forum and it is here.
Solution for not Gradle 403 Http response
find distributionUrl variable in:
myapp\platforms\android\cordova\lib\builders\GradleBuilder.js
change http value to https in this line:
var distributionUrl = process.env['CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL'] || 'https://services.gradle.org/distributions/gradle-2.2.1-all.zip';

error 500 on joomla Global Configuration save

I'm new to joomla and I'm configuring my first site, but ended having a problem with the Global Configuration, when I try to save it, i receive a 500 error.
I'm using php internal server to run it, "php -S localhost:8081"... everything else is working fine..
here's the stacktrace, doesn't seem to be a permission error, but i'm not sure.
500 - An error has occurred.
JModel: :getName() : Can't get or parse class name.
Return to Control Panel
Call stack
# Function Location
1 JAdministrator->dispatch() /home/dshiga/dev/joomla_hairs/administrator/index.php:46
2 JComponentHelper::renderComponent() /home/dshiga/dev/joomla_hairs/administrator/includes/application.php:153
3 JComponentHelper::executeComponent() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/helper.php:351
4 require_once() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/helper.php:383
5 JController->execute() /home/dshiga/dev/joomla_hairs/administrator/components/com_config/config.php:18
6 ConfigControllerApplication->save() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/controller.php:761
7 JController->getModel() /home/dshiga/dev/joomla_hairs/administrator/components/com_config/controllers/application.php:55
8 JController->createModel() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/controller.php:793
9 JModel::getInstance() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/controller.php:599
10 JModel->__construct() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/model.php:201
11 JError::raiseError() /home/dshiga/dev/joomla_hairs/libraries/joomla/application/component/model.php:220
12 JError::raise() /home/dshiga/dev/joomla_hairs/libraries/joomla/error/error.php:251
Finally found out, the problem is caused by the use of php internal server through "php -S" command, not sure of exactly what causes the error in this circustances, but hosting the site under apache solved the problem.

Resources