Status Update
Comments
jp...@google.com <jp...@google.com> #2
To help us understand the issue, please ensure you have provided a minimal code example that reproduces the problem, including the API calls, errors, and responses you're seeing. Generated Metadata
- Summary: A developer is encountering an 'Uncaught TypeError: vb.X is not a constructor' error within their Apps Script web application, which is preventing the application from functioning correctly.
- Tags:
Additional resources:
https://stackoverflow.com/.../googlespreadsheet-is-not-a-constructor-error https://stackoverflow.com/.../how-to-fix-uncaught-referenceerror-loadrecor... https://stackoverflow.com/.../google-apps-script-typeerror-data-foreach-is-n... https://stackoverflow.com/.../google-apps-script-keeps-throwing-function-n... https://stackoverflow.com/.../uncaught-typeerror-google-script-run-is-not-a...
bl...@google.com <bl...@google.com> #3
ph...@airbus.com <ph...@airbus.com> #5
tk...@gmail.com <tk...@gmail.com> #6
Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user__ja.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user__ja.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user__ja.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user__ja.js:38:44)
al...@pwc.com <al...@pwc.com> #7 Restricted+
ta...@iot.croix-rouge.fr <ta...@iot.croix-rouge.fr> #8
ta...@iot.croix-rouge.fr <ta...@iot.croix-rouge.fr> #9
ru...@croix-rouge.fr <ru...@croix-rouge.fr> #10
I also encounter the problem:
Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user__fr.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user__fr.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user__fr.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user__fr.js:38:44)
pi...@airbus.com <pi...@airbus.com> #11
st...@revevol.eu <st...@revevol.eu> #12
se...@inforisme.fr <se...@inforisme.fr> #13
st...@addonsforgapps.com <st...@addonsforgapps.com> #14
je...@airbus.com <je...@airbus.com> #15
ia...@gmail.com <ia...@gmail.com> #16
Not sure if helpful or not, but while I was digging around before seeing this post I found :
The behaviour appears intermittent. Whether the working (164...) or failing (232...) .js script is served does not seem tied to user session, browser cache, or specific environmental factors like cookies or headers, the issue persists in incognito mode, ruling out browser cache or stale cookies as the cause.
Network Tab Comparison:
On working loads, the script served is client/js/1642008927-mae_html_user_bin_i18n_mae_html_user__en_gb.js.
On failing loads with the same error mentioned above, the script served is /client/js/2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js
additional testing :
Code.gs
function doGet(e) {
return HtmlService.createHtmlOutputFromFile('index');
}
function handleSubmit(data) {
if (!data.input || data.input.trim() === "") {
return { error: "Input cannot be empty" };
}
return { message: `You entered: ${data.input}` };
}
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Basic Web App</title>
</head>
<body>
<h1>Basic Web App</h1>
<form id="testForm">
<label for="inputField">Enter something:</label>
<input type="text" id="inputField" name="inputField">
<button type="submit">Submit</button>
</form>
<p id="output"></p>
<script>
document.getElementById("testForm").addEventListener("submit", function (event) {
event.preventDefault();
const inputValue = document.getElementById("inputField").value;
google.script.run
.withSuccessHandler(function(response) {
if (response.error) {
document.getElementById("output").textContent = `Error: ${response.error}`;
} else {
document.getElementById("output").textContent = response.message;
}
})
.handleSubmit({ input: inputValue });
});
</script>
</body>
</html>
And the same. 2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:50 Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:38:44)
jb...@wayfair.com <jb...@wayfair.com> #17
be...@galec.leclerc <be...@galec.leclerc> #18
Same here.
On fail : static/macros/client/js/2327385155-mae_html_user_bin_i18n_mae_html_user__fr.js
Working : static/macros/client/js/1642008927-mae_html_user_bin_i18n_mae_html_user__fr.js
ru...@croix-rouge.fr <ru...@croix-rouge.fr> #19
The problem is general. Can Google help us please?
oh...@gmail.com <oh...@gmail.com> #20
ni...@apps4gs.com <ni...@apps4gs.com> #21
ga...@gmail.com <ga...@gmail.com> #22
ad...@tcoccolo.com.ar <ad...@tcoccolo.com.ar> #23
bl...@lamar.com <bl...@lamar.com> #24
su...@oralpath.ca <su...@oralpath.ca> #25
rj...@gmail.com <rj...@gmail.com> #26
rs...@gmail.com <rs...@gmail.com> #27
dr...@gmail.com <dr...@gmail.com> #28
same issue in webapp seems to be consistently failing for me.
sa...@gmail.com <sa...@gmail.com> #29
ph...@lepechdandre.fr <ph...@lepechdandre.fr> #30
ti...@gmail.com <ti...@gmail.com> #31
ma...@gruppoasa.com <ma...@gruppoasa.com> #32
ab...@gmail.com <ab...@gmail.com> #33
se...@supermetrics.com <se...@supermetrics.com> #34
Our Sheets sidebar product is also affected. About 50% of all launches is unsuccessful.
mb...@slido.com <mb...@slido.com> #35
jp...@google.com <jp...@google.com> #36
I have reported this to the engineering team and future updates will be shared here. Thank you for your patience.
ja...@cascade-care.com <ja...@cascade-care.com> #37
Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:38:44)
This is happening across all our AppScripts, which are used in our care homes, a serious issue for us.
yt...@accon.services <yt...@accon.services> #38
co...@gmail.com <co...@gmail.com> #39
ru...@croix-rouge.fr <ru...@croix-rouge.fr> #40
The same thing, could you please put in P1 because the general problem, and very impactful.
Thank you in advance,
me...@gmail.com <me...@gmail.com> #41
function doGet() {
return HtmlService.createHtmlOutputFromFile('index');
}
index.html
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
<style>
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
text-align: center;
padding: 20px;
border: 1px solid #ccc;
border-radius: 10px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
</style>
</head>
<body>
<div class="container">
<h1>Hello World!</h1>
<p>Welcome to the Google Apps Script Web App.</p>
</div>
</body>
</html>
return error
Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user__en_gb.js:38:44)
am...@jefferson.kyschools.us <am...@jefferson.kyschools.us> #42
ph...@lepechdandre.fr <ph...@lepechdandre.fr> #43
nb...@slido.com <nb...@slido.com> #44
an...@bbva.com <an...@bbva.com> #45
qi...@gmail.com <qi...@gmail.com> #46
Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user__ja.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user__ja.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user__ja.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user__ja.js:38:44)
This error appears to be related to a Closure Library file, previously, I noticed that quickly refreshing the same GAS URL sometimes resolved the error, but now I find that no matter what I do, I can't access my GAS application.
I've been working on it for hours...This is a P1 and S1.
di...@bbva.com <di...@bbva.com> #47
ce...@davivienda.com <ce...@davivienda.com> #48
vl...@fordham.edu <vl...@fordham.edu> #49
vi...@biomass-concept.com <vi...@biomass-concept.com> #50
kr...@highgradeusa.com <kr...@highgradeusa.com> #51
il...@gmail.com <il...@gmail.com> #52
er...@banestes.com.br <er...@banestes.com.br> #53
gp...@banestes.com.br <gp...@banestes.com.br> #54
rb...@curativetalent.com <rb...@curativetalent.com> #55
se...@gmail.com <se...@gmail.com> #56
ab...@cps.edu <ab...@cps.edu> #57
ma...@inspiredaccounting.co.uk <ma...@inspiredaccounting.co.uk> #58
ty...@gmail.com <ty...@gmail.com> #59
Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:38:44)
dw...@fcpsschools.net <dw...@fcpsschools.net> #60
am...@autlan.com.mx <am...@autlan.com.mx> #61
Please check!
sa...@gmail.com <sa...@gmail.com> #62
np...@paulinocontadores.com.ar <np...@paulinocontadores.com.ar> #63
vl...@ext.doordash.com <vl...@ext.doordash.com> #64
jo...@bbva.com <jo...@bbva.com> #65
ku...@coefficient.io <ku...@coefficient.io> #66
ma...@gmail.com <ma...@gmail.com> #67
dr...@gmail.com <dr...@gmail.com> #68
I have the same problem:
This issue has started to appear in console my app(Uncaught TypeError: vb.X is not a constructor). page web :The page is blank . console :Uncaught TypeError: vb.X is not a constructor.
refresh page: When reloading the page, the application works fine, but when reloading, the problem appears.
cr...@stmarys-ca.edu <cr...@stmarys-ca.edu> #69
ce...@bbva.com <ce...@bbva.com> #70
te...@detechcentral.com <te...@detechcentral.com> #71
Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user.js:38:44)
lo...@gmail.com <lo...@gmail.com> #72
TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:38:44)
This issue is not intermittent for me; it occurs consistently.
During execution, no errors are reported in the Apps Script editor. However, the console clearly shows the error mentioned above.
I have attached screenshots for reference.
Could you please advise on how to resolve this?
Thank you in advance for your help.
dr...@gmail.com <dr...@gmail.com>
ps...@gmail.com <ps...@gmail.com> #73
Description:
I am encountering the same issue that others have reported. My account is also affected. The error occurs when trying to load my Google Apps Script project.
Initially, the app loads correctly the first time, but subsequent attempts to load it fail, showing the following error in the browser console:
TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user__es.js:38:44)
This issue is persistent and occurs every time after the initial successful load.
ty...@maryland.gov <ty...@maryland.gov> #74
te...@workday.com <te...@workday.com> #75
ty...@gmail.com <ty...@gmail.com> #76
jm...@wayfair.com <jm...@wayfair.com> #77
cg...@mecojax.com <cg...@mecojax.com> #78
On calling Ui.showSidebar I get the error in the Web Dev Tools Console 'vb.X is not a constructor
Chrome:
Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user.js:38:44)
Firefox:
Uncaught TypeError: vb.X is not a constructor
Xb
E
eb
a
ab
Ya
<anonymous>
<anonymous>
cv...@gmail.com <cv...@gmail.com> #79
ke...@cheffer.co <ke...@cheffer.co> #80
2327385155-mae_html_user_bin_i18n_mae_html_user.js:50 Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user.js:38:44)
fl...@nextcanada.com <fl...@nextcanada.com> #81
tu...@ahaa360.net <tu...@ahaa360.net> #82
zh...@gmail.com <zh...@gmail.com> #83
fl...@gmail.com <fl...@gmail.com> #84
ad...@whirlpool.com <ad...@whirlpool.com> #85
da...@travisperkins.co.uk <da...@travisperkins.co.uk> #86
ah...@gmail.com <ah...@gmail.com> #87
jw...@shift4.com <jw...@shift4.com> #88
Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user.js:38:44)
ja...@denvershadecompany.com <ja...@denvershadecompany.com> #89
mi...@randstad.it <mi...@randstad.it> #90
ca...@bbva.com <ca...@bbva.com> #91
ce...@notaria26gdl.com.mx <ce...@notaria26gdl.com.mx> #92
ed...@acate.com.br <ed...@acate.com.br> #93
rd...@cimtcollege.com <rd...@cimtcollege.com> #94
Same issue is being faced here. Google should resolve this ASAP as this is impacting applications all over the world.
da...@cityblock.com <da...@cityblock.com> #95
ja...@powerbackrehab.com <ja...@powerbackrehab.com> #96
2327385155-mae_html_user_bin_i18n_mae_html_user.js:50 Uncaught TypeError: vb.X is not a constructor
at Xb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:50:306)
at 2327385155-mae_html_user_bin_i18n_mae_html_user.js:27:132
at eb (2327385155-mae_html_user_bin_i18n_mae_html_user.js:39:398)
at a (2327385155-mae_html_user_bin_i18n_mae_html_user.js:38:44)
he...@gmail.com <he...@gmail.com> #97
je...@informedk12.com <je...@informedk12.com> #98
Ar...@ahschools.us <Ar...@ahschools.us> #99
yo...@navagis.com <yo...@navagis.com> #100
sy...@aftb.org.uk <sy...@aftb.org.uk> #101
ad...@cislink.nl <ad...@cislink.nl> #102
jo...@bbva.com <jo...@bbva.com> #103
Uncaught TypeError: vb.X is not a constructor Problem persist after few hours
md...@dpsk12.net <md...@dpsk12.net> #104
kb...@gmail.com <kb...@gmail.com> #105
TypeError: undefined is not a constructor (evaluating 'new vb.X(window,g,b)')
al...@bbva.com <al...@bbva.com> #106
ad...@cislink.nl <ad...@cislink.nl> #109
Great
dr...@gmail.com <dr...@gmail.com> #110
I think there is no problem anymore, ✅🤍🤸
ga...@severaltech.com.ar <ga...@severaltech.com.ar> #111
ed...@gmail.com <ed...@gmail.com> #112
On Wed, Jan 15, 2025 at 4:24 PM <buganizer-system@google.com> wrote:
te...@detechcentral.com <te...@detechcentral.com> #113
la...@gmail.com <la...@gmail.com> #114
ma...@parqueexplora.org <ma...@parqueexplora.org> #115
al...@gmail.com <al...@gmail.com> #116
To work around this problem, I decided to let the server keep attempting to open the form until it finally succeeds. Here is my code:
function showFormWithRetry(attempt) {
// If no attempt value is provided, default to 1
attempt = attempt || 1;
// Stop after 20 attempts
if (attempt > 20) {
Browser.msgBox('It was not possible to open the form after 20 attempts.');
return;
}
// Use Script Properties to track whether the form has loaded
const scriptProperties = PropertiesService.getScriptProperties();
scriptProperties.setProperty('formLoaded', 'false');
// HTML content with a script to inform the server when the form loads
const htmlContent = `
<html>
<body onload="onFormLoad()">
<h1>Hello Google!!!</h1>
<p>Attempt ${attempt} to open the form.</p>
<script>
function onFormLoad() {
// As soon as the HTML loads, notify the server
google.script.run.formOpened();
}
</script>
</body>
</html>
`;
// Create and display the modal dialog
const html = HtmlService.createHtmlOutput(htmlContent)
.setWidth(300)
.setHeight(150);
SpreadsheetApp.getUi().showModalDialog(html, `Attempt #${attempt}`);
// Wait for up to 10 seconds to check if the form has loaded
let loaded = false;
try {
let attempts = 0;
while (attempts < 10) {
Utilities.sleep(1000); // Wait 1 second
const status = scriptProperties.getProperty('formLoaded');
if (status === 'true') {
loaded = true;
break;
}
attempts++;
}
} catch (e) {
Logger.log('Error while waiting: ' + e);
}
// If not loaded, try again
if (!loaded) {
showFormWithRetry(attempt + 1);
}
}
function formOpened() {
// Mark the form as loaded
const scriptProperties = PropertiesService.getScriptProperties();
scriptProperties.setProperty('formLoaded', 'true');
}
ma...@toho.ne.jp <ma...@toho.ne.jp> #117
in...@counselingbydaleth.net <in...@counselingbydaleth.net> #118
See attached screenshot.
er...@gmail.com <er...@gmail.com> #119
I appreciate the team effort in fixing it in time.
nn...@gmail.com <nn...@gmail.com> #120
gh...@gmail.com <gh...@gmail.com> #121
mi...@ambeagrofoods.com <mi...@ambeagrofoods.com> #122
Yes Issue has been Resolved Completely. Thanks google Team.....
Description
Uncaught TypeError: vb.X is not a constructor occurs in GAS web app