-
-
Notifications
You must be signed in to change notification settings - Fork 676
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
error TS1036: Statements are not allowed in ambient contexts. #427
Comments
Hey there thank you for reporting this. |
Hello @verlok , this version: "vanilla-lazyload": "^14.0.0" |
I added the "Help Wanted" label because I don't have the foggiest of what can cause that error on Typescript. I'll ask around and I'll let you know if I found a cause. In the meantime, can you tell me if you get the same error using version 13.0.1 and with 12.5.1? Thanks |
A friend helped. Thanks @cant89. You're the heart of the open-source. 😻🤟 |
Fixed in 14.0.1 |
After upgrading to Angular 9.1.0 and using Typescript 3.8.3, I keep getting these errors when compiling with ng build --watch command:
node_modules/vanilla-lazyload/typings/lazyload.d.ts:36:1 - error TS1036: Statements are not allowed in ambient contexts.
36 if (this._observer) {
~~
node_modules/vanilla-lazyload/typings/lazyload.d.ts:37:5 - error TS1036: Statements are not allowed in ambient contexts.
37 this._observer.disconnect();
~~~~
The text was updated successfully, but these errors were encountered: