-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Variables defined at window object are undefined. #182
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
Comments
I also have this issue. Would someone please provide a response. Thank you! |
+1 |
Hi, I came across with this problem too. I've found two ways to handle it so far.
|
It is not possible for an iframe to pass through these |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have a problem with
web-dev-server
command and variables at the window object.I tried define window.mySampleGlobalVariable and then access it from developer tools and it is undefined.
My sample app looks like this:
app.js
index.html
webpack.config.js
When I use only
webpack
command everything is working fine. I'm testing it by typingwindow.mySampleGlobalVariable
in chrome developer tools and it prints TEST as I expectedBUT when I run
webpack-dev-server
command then my window variable is undefined.The text was updated successfully, but these errors were encountered: