I am trying to follow this simple guide https://www.polymer-project.org/3.0/docs/tools/create-element-polymer-cli
I pasted bellow the whole exception:
C:\dev\polymer2\sample\my-el>polymer init
'uname' is not recognized as an internal or external command,
operable program or batch file.
? Which starter template would you like to use? polymer-3-element
info: [init] Running template polymer-3-element...
? Element name my-el
? Brief description of the element test
error: [cli.main] Uncaught exception: AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist
: C:\Users\myuser\AppData\Roaming\npm\node_modules\polymer-cli\templates\element\polymer-3.x\.gitignore
error: [cli.main] AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: C:\Users\myuser\
AppData\Roaming\npm\node_modules\polymer-cli\templates\element\polymer-3.x\.gitignore
at EditionInterface.exports.copy (C:\Users\myuser\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\mem-fs
-editor\lib\actions\copy.js:47:3)
at EditionInterface.module.exports [as copyTpl] (C:\Users\myuser\AppData\Roaming\npm\node_modules\polymer-cli\node
_modules\mem-fs-editor\lib\actions\copy-tpl.js:10:8)
at Polymer3ElementGenerator.writing (C:\Users\myuser\AppData\Roaming\npm\node_modules\polymer-cli\lib\init\element
\element.js:124:21)
at Object.<anonymous> (C:\Users\myuser\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\yeoman-generator\
lib\index.js:417:23)
at C:\Users\myuser\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\run-async\index.js:25:25
at new Promise (<anonymous>)
at C:\Users\myuser\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\run-async\index.js:24:19
at C:\Users\myuser\AppData\Roaming\npm\node_modules\polymer-cli\node_modules\yeoman-generator\lib\index.js:418:9
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
Related
This was the error i keep getting showed :
Attribute application#name value=(android.app.Application) from (unknown)
is also present at [:chaquopy] AndroidManifest.xml:9:18-72 value=(com.chaquo.python.android.PyApplication).
Suggestion: add 'tools:replace="android:name"' to element at AndroidManifest.xml:3:4-33:19 to override.
I'm new to NativeScript and I'd like to fetch a JSON that is a part of my projet.
How do I do so?
The following failed:
app/data/util.js
import json from "../data/urls"; // Attempting to fetch urls.json
As a result:
com.tns.NativeScriptException: Error calling module function
Error: Cannot find module '../data/urls'
File: (file:///data/data/org.nativescript.preview/files/app/bundle.js:435:120)
StackTrace:
webpackMissingModule(file:///data/data/org.nativescript.preview/files/app/bundle.js:435:45)
at (file:///data/data/org.nativescript.preview/files/app/bundle.js:435:131)
at ./data/utils.js(file:///data/data/org.nativescript.preview/files/app/bundle.js:504:30)
at __webpack_require__(file:///data/data/org.nativescript.preview/files/app/runtime.js:751:30)
at fn(file:///data/data/org.nativescript.preview/files/app/runtime.js:121:20)
at ../node_modules/babel-loader/lib/index.js!../node_modules/vue-loader/lib/index.js?!./components/Home.vue?vue&type=script&lang=js&(file:///data/data/org.nativescript.preview/files/app/bundle.js:9:69)
at __webpack_require__(file:///data/data/org.nativescript.preview/files/app/runtime.js:751:30)
at fn(file:///data/data/org.nativescript.preview/files/app/runtime.js:121:20)
at ./components/Home.vue?vue&type=script&lang=js&(file:///data/data/org.nativescript.preview/files/app/bundle.js:397:187)
at __webpack_require__(file:///data/data/org.nativescript.preview/files/app/runtime.js:751:30)
at fn(file:///data/data/org.nativescript.preview/files/app/runtime.js:121:20)
at ./components/Home.vue(file:///data/data/org.nativescript.preview/files/app/bundle.js:345:92)
at __webpack_require__(file:///data/data/org.nativescript.preview/files/app/runtime.js:751:30)
at fn(file:///data/data/org.nativescript.preview/files/app/runtime.js:121:20)
at (file:///data/data/org.nativescript.preview/files/app/bundle.js:246:74)
at ./app.js(file:///data/data/org.nativescript.preview/files/app/bundle.js:306:30)
at __webpack_require__(file:///data/data/org.nativescript.preview/files/app/runtime.js:751:30)
at checkDeferredModules(file:///data/data/org.nativescript.preview/files/app/runtime.js:44:23)
at webpackJsonpCallback(file:///data/data/org.nativescript.preview/files/app/runtime.js:31:19)
at (file:///data/data/org.nativescript.preview/files/app/bundle.js:2:57)
at require(:1:266)
Error: Cannot find module '../data/urls'
at com.tns.Runtime.runModule(Native Method)
at com.tns.Runtime.runModule(Runtime.java:662)
at com.tns.Runtime.run(Runtime.java:654)
at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:21)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1154)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6158)
at android.app.ActivityThread.access$1200(ActivityThread.java:235)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1768)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:6986)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
No matter if I attempt to fetch ~/data/urls or ../data/urls, the error is the same (with the minor path difference)
Later on, I ran into this question, but I'm pretty sure that there's a simpler to way to fetch a JSON of the current project, right?
you should determine the file extension too,
so it should be like:
import json from "../data/urls.json";
I have a chrome plugin runnin Xhook which intercepts xhr requests.
This used to work with angular js. Now I am using an Angular 7 application And I am getting an error when I make following request
this.http.get('someurl').subscribe((data: any) => {
});
Which triggers xhr.send(reqBody); in the angular http.js library. The error is on the subscribe part, if I remove this the error is gone.
The error is the following:
core.js:15724 ERROR TypeError: Illegal invocation
at ZoneTask.scheduleTask [as scheduleFn] (zone.js:3238)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask (zone.js:410)
at Object.onScheduleTask (zone.js:301)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.scheduleTask (zone.js:404)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.scheduleTask (zone.js:238)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.scheduleMacroTask (zone.js:261)
at scheduleMacroTaskWithCurrentZone (zone.js:1245)
at zone.js:3276
at _global.<computed>.proto.<computed> [as send] (zone.js:1569)
at Observable._subscribe (http.js:1726)
I am using this library: https://github.com/jpillora/xhook and the error is caused by line 478 facade.send = function(body) https://github.com/jpillora/xhook/blob/gh-pages/dist/xhook.js
I am thinking that: either angular tries to run the overridden function but something is not accessible because of zone.js, or I am missing certain properties, function in the object that overrides xhr?
If anyone has any information or solution on the subject that would be dearly appreciated.
Getting file upload error in dojo iframe - doc.getElementsByTagName('textarea')[0].value undefined error. File upload is failing intermittently when dojo(1.11.2 version) handleResponse() method is called before the response comes from the remote server .
Below is the error message i am getting
Error: HTML Upload Error:Cannot read property 'value' of undefined at
Object._error
(/public/prod/dojo-1.11.2/dojox/form/FileUploader.js:18:56) at
Object.d (:244:264) at Object._error
(/public/prod/revolution-3.8.5/revit/form/FileUploader.js:12:300) at
Object.eval
(/public/prod/dojo-1.11.2/dojox/form/FileUploader.js:23:457) at
Object.error (:44:382) at :149:461 at g
(:163:21) at h (:162:331) at
h.Deferred.reject.errback (:164:304) at g
(:163:293) Message
I spent lot of hours in resolving this issue.But some how it is not getting resolved.Can anyone help me .
I'm getting the following error after solving an MINLP problem (GAMS 24.4.1/SCIP version 3.1 (020d055)):
Checking feasibility of solution #00 with reported objective value -1.000000970918791e-09.
This is Ipopt version 3.11, running with linear solver ma27.
EXIT: Not enough memory.
[../../../ThirdParty/SCIP/scip/src/nlpi/nlpi_ipopt.cpp:1104] ERROR: Ipopt returned with status "Insufficient Memory"
[../../../ThirdParty/SCIP/scip/src/nlpi/nlpi.c:503] ERROR: Error <-1> in function call
[../../../ThirdParty/SCIP/scip/src/scip/nlp.c:4689] ERROR: Error <-1> in function call
[../../../ThirdParty/SCIP/scip/src/scip/nlp.c:5527] ERROR: Error <-1> in function call
[../../../ThirdParty/SCIP/scip/src/scip/scip.c:26453] ERROR: Error <-1> in function call
[../../../ThirdParty/SCIP/scip/src/scip/heur_subnlp.c:1199] ERROR: Error <-1> in function call
[../../../ThirdParty/SCIP/scip/src/scip/heur_subnlp.c:1820] ERROR: Error <-1> in function call
[reader_gmo.c:2074] ERROR: Error <-1> in function call
[reader_gmo.c:2371] ERROR: Error <-1> in function call
[reader_gmo.c:2768] ERROR: Error <-1> in function call
[../../../ThirdParty/SCIP/scip/src/scip/dialog.c:828] ERROR: Error <-1> in function call
[../../../ThirdParty/SCIP/scip/src/scip/dialog.c:370] ERROR: Error <-1> in function call
[../../../ThirdParty/SCIP/scip/src/scip/scip.c:8419] ERROR: Error <-1> in function call
--- Restarting execution
I can't retrieve the solution after this happens. Is there a way to avoid this? I can upload the GAMS files if needed.
Thank you.
You can set the option gams/resolvenlp = FALSE to avoid this resolve of the sub-NLP at the end.
But it would also be nice to get a hand onto the GAMS model file to have a closer look.