import { SyncedCron } from 'meteor/percolate:synced-cron'; - meteor

Many answers revolve around this question on StackOverflow, but none could solve my problem. I use the WebStorm IDE
On the server side in main.js, I have the following code
import { SyncedCron } from 'meteor/percolate:synced-cron';
SyncedCron.add({
'name': 'Mise a jour GPS',.....
'meteor / percolate: synced-cron' is underlined and the message is "Module is not installed"
Can someone tell me how to correct this error? This is just a warning I think, but I don't like warnings, I'm always afraid that it hides a real error.

WEB-42721 is fixed in 2019.3.1 that is coming soon

Related

I am getting and eslint error on a v-model when using Quasar and Vue3

I am using quasar + vue 3 and I am getting an eslint error when working with a q-table. The code works well but the error is driving me nuts...
the error shows in v-model:selected = "selected" of the q-table
<q-table
title="Savings"
:rows="rows"
:columns="columns"
row-key="date"
selection="multiple"
v-model:selected="selected"
/>
I've just copied the code from the quasar documentation and as I said, the code works well. It is just the red line that bothers me a lot.
googling a little bit I found some users that solved it by adding in the .eslintrc.js file the following line:
rules:{
'vue/no-v-model-argument': 'off',
}
but in my case this does not do nothing.
I created the project using the quasar cli. Not sure what is wrong and how can I get rid of this error.
Any help will be much appreciated.
Best regards,

symfony2 cannot read property 'fnIsDatatable' of undefined

I'm desperate because I don't find any solution on web for my problem.
I work with easytabs, and on every tab I have a different DataTable with different IDs. On page loading, I've to check, if a DataTable is still there.
On localhost everything works fine, but when i push it on the server I get the following error message:
Uncaught TypeError: Cannot read property 'fnIsDataTable' of undefined
My Code:
if ($.fn.dataTable.fnIsDataTable('#table-history')) {
$('#table-history').DataTable().destroy();
}
I can't explain why it is working on localhost, and any suggestions like "You've to load the jquery before datatable js file" don't solve this issue.
I hope you have any suggestions or experience with it.
Hope this help for you.
As #Eliellel said over here ,What you are trying is : trying to destroy datatable before its creation.
try to replace your function with mine.
if ($.fn.dataTable.fnIsDataTable('#table-history')) {
var table = $('#table-history').DataTable();
if(table){
table.destroy();
}
}

middleware_stack.js:31 Uncaught Error: Handler with name 'route' already exists. Iron router Meteor

My code was working fine until last night and suddenly I am getting this error and routes are not working at all.
middleware_stack.js:31Uncaught Error: Handler with name 'route' already exists.
for simple routes like this:
Router.route('/admin/dashboard', {
template:"adminDashboard"
});
Router.route('/admin/create/table', {
template:"create_table"
});
I cannot figure out the error, I have checked all the routes. Have anyone else faced this error?
This is a known issue. The problem occurs with recent versions of Google Chrome and Microsoft Edge (edit: also Firefox now).
It has been fixed by a recent iron router update, it should be fixed by meteor update iron:middleware-stack.
Edit: If the middleware-stack package rolls back when you restart the server, check #bigsan's comment
Edit: this issue was fixed in iron:middleware-stack 1.1.0 .
I have the same problem. Weirdly, I have this problem on Chrome 51 but not on Chrome 46. I guess this has to do with updates in the javascript engine, and I'll post here if I figure out what exactly.
In the meantime, the workaround I used was to explicitly add names to the routes. It doesn't matter what they are, they just have to be declared, otherwise iron-router think the name of the route is "route." So your code would become:
Router.route('/admin/dashboard', {
name: "Boaty_McBoatface",
template:"adminDashboard"
});
Router.route('/admin/create/table', {
name: "Guacamole",
template:"create_table"
});
First, have a look here and see when this error is thrown. So, actually I have not faced that error but I've read about it. Further have a look at the official guide and post. I see that you are trying to create a subdirectory to your route /admin. Usually, I do this by using this.render() function. Concerning the layout I use this.layout() so I think that if you use these functions and remove template:"adminDashboard". It will work.

Broken JavaScript Registry in Plone 3.1.7

I created a javascript file TTW for a quick fix to something i was working with, and when i went to the portal_javascripts and added it there i was met with this error upon saving:
Exception Type: CompilerError
Exception Value: Path element may not be empty in 'portal/http://www.example.com/portal_skins/cloud.js'
I get that same error every time i attempt to navigate to the portal_javascripts through the ZMI, it's obvious that I incorrectly entered the id of my file, but now I can't even fix it.
I was able to find this example of someone with a similiar issue, but I have no how to go about his fix
http://markmail.org/message/zbjhjoezz2h423yr#query:+page:1+mid:yhgjekdkwnegwqen+state:results
Try this:
http://example.com/portal_javascripts/unregisterResource?id=[your_js_resource_id]

WatiN - getting past the certificate error page

Anyone know how to use CertificateWarningHandler in WatiN?
I've got as far as...
IE ie = new IE("https://mysite.aspx");
CertificateWarningHandler cwh = new CertificateWarningHandler(CertificateWarningHandler.ButtonsEnum.Yes);
cwh.HandleDialog(new Window(ie.hWnd));
... which does precisely nothing.
On a more general note, how on earth do you people manage to use this tool? The documentation is nearly useless, and there doesn't seem to be any decent resource online. I must be missing something because it's taken me about half an hour to write 3 lines of code that don't even work.
I'm using something similar to what Saar is using and it works fine (my tests are cross-browser).
//Override security warning in browser
{
if (Browser.Link(Find.ById("overridelink")).Exists)
{
Browser.Link(Find.ById("overridelink")).Click();
Browser.WaitForComplete();
}
else
{
Browser.WaitForComplete();
} //end else
}
I'm not a developer, and I've found that there's plenty of information out there on WatiN and others post code samples and the like that are really helpful. Google is one of my best friends when it comes to finding WatiN help. You'll get the hang of it.
have you tried following already?
ie.DialogWatcher.Add(cwh);
or just
ie.DialogWatcher.Add(new CertificateWarningHandler());
Update: After comment.
Actually this works for me.
further may be following will help
Browser browser = ie;
if (browser.Links.Exists("overridelink"))
{
browser.Link("overridelink").Click();
}

Resources