New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such module: atom_common_app #8423
Comments
Can you provide more of the stack trace for this error? |
Here it is. @kevinsawicki
|
@petrbrzek is |
@kevinsawicki In the renderer process. |
I'm having this same issue. Was anyone able to resolve this? Thank you in advance! |
@ImaPepper are you able to reproduce this consistently and could you provide some reproduction steps if you are? |
@petrbrzek are you ever passing the |
@kevinsawicki Yes, it happens every time one of my js files is loaded from an html view. I also get three deprecated warnings each time.
|
@ImaPepper can you include the line of code at |
@kevinsawicki I have a main.js which is also loaded by all of my views, and requires the appropriate node modules and files. So app is defined there. If I try to require it in this file as well, I get an error that it is already defined. I have other views and javascript files that it works perfectly for so I don't think the lack of the require statement in this file is the issue.
|
@ImaPepper what is |
@kevinsawicki I updated my comment above |
@kevinsawicki main.js; mainly used for a navigation pane that is standard across all views.
Appropriate functions inside app.js
|
@ImaPepper does the |
@kevinsawicki Ahhh I fixed it! Silly mistake on my part. Thank you so much for your help! It should have been: function populateReportTable() {
let eventId = document.getElementById('event-id');
app.buildAttendanceReport(eventId.value, (error, results) => { //LINE 6
$('tbody>tr').remove();
let table = document.querySelector('#report>tbody');
for (let i = 0; i < results.length; i++) {
let row = document.createElement('tr');
let netId = document.createElement('td');
netId.appendChild(document.createTextNode(message[i].netid));
let name = document.createElement('td');
name.appendChild(document.createTextNode(message[i].last_name + ', ' + message[i].first_name));
let classification = document.createElement('td');
classification.appendChild(document.createTextNode(message[i].classification));
let major = document.createElement('td');
major.appendChild(document.createTextNode(message[i].major));
row.appendChild(netId);
row.appendChild(name);
row.appendChild(classification);
row.appendChild(major);
table.appendChild(row);
}
})
} |
So are you still seeing the error when using |
All errors went away. Apparently, by inadvertently trying to send an HTML element rather than a text value into the function, it caused all those errors. |
I was able to reproduce this, looks like it can happen whenever you pass an object that references the module cache. Such as: require('electron').remote.app.getPath(global.module) This is because this line: electron/lib/renderer/api/remote.js Line 292 in 62f4a77
|
How to reproduce
Dunno. We started to see the issue in our Sentry 5 days ago.
The text was updated successfully, but these errors were encountered: