Comments (3)
Hi,
Thanks for the quick response. In the meanwhile I was able to fix it, I have added the solution below and it may be usefull to add to the readme (but feel free not to).
Original issue: using this lib in an Ionic 2 project and creating a production build npm run ionic:build --prod
the following error was thrown:
[15:53:18] ngc started ...
[15:53:32] typescript error
Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing
the function or lambda with a reference to an exported function (position 194:50 in the original .ts file),
resolving symbol NgModule in
Solution:
To use this library in an Ionic 2 project update the "compileOptions" in tsconfig.json
in the root of the project with a "baseUrl" and "paths" property like so:
"compilerOptions": {
...
"baseUrl": "src",
"paths": {
"@angular/*": [
"../node_modules/@angular/*"
]
}
},
With that you can compile an Ionic 2 production build as well! Thanks and keep up the good work!
from angular-page-visibility.
Hi @dnmd ,
Thank you for your solution and your encouragement!
from angular-page-visibility.
Hello, Thank you for using this lib :-). I am very happy that it serves you. If you use angular-cli AOT is supported. Can you test with 'ng build --prod'?
from angular-page-visibility.
Related Issues (15)
- Add the page visibility state to the success callback arg of observable $onPageVisibilityChange
- Angular 7 support HOT 1
- Angular Universal Support HOT 4
- Angular 8 support HOT 3
- @OnPageHidden doesn't work in iOS when mobile browser is minimized (Chrome on iOS, Safari).
- Add decorators to use in components HOT 1
- Ivy support? HOT 1
- ISUUE WHEN FULLSCRENN IN FIREFOX
- @OnPageVisible() doesnt work with class instances HOT 3
- Angular 6 Compatibility HOT 2
- Build error with aot support HOT 1
- Decorators doesnt work with Injectables HOT 1
- rxjs error HOT 4
- typo in readme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-page-visibility.