Help! masterPage.js errors

Hi, Could anyone help me to solve these errors in the masterPage.js?
Many thanks!!


[public/pages/masterPage.js]:

Error count: 2

error: no-undef: ‘Write’ is not defined. (3:25)

error: no-undef: ‘wixWindowFrontend’ is not defined. (17:7)

Hi, user2184 !!

First, please check if you have defined the function Write yourself. Also, since you haven’t imported wixWindowFrontend , an error is occurring. Please write a declaration like this at the top of your code: :wink:

import wixWindowFrontend from "wix-window-frontend";

Thank you so much for your quick reply! Your solution works for this error:
error: no-undef: ‘wixWindowFrontend’ is not defined. (17:7)

What can I do to solve the other one? I didn’t define the function Write

If you haven’t defined the Write function, I think you can remove both the entire $w.onReady block and the Write function. :thinking:

It works!!! Thank you so much!!! :blush:

1 Like