smip / ngx-sticky-sidebar Goto Github PK
View Code? Open in Web Editor NEWAngular library for making smart and high performance sticky sidebar.
License: MIT License
Angular library for making smart and high performance sticky sidebar.
License: MIT License
When starting up my app I am getting the following error
Module not found: Error: Can't resolve 'sticky-sidebar' in './node_modules/@smip/ngx-sticky-sidebar/fesm5'```
Hello guys, thanks for this great library.
I have an issue with the sidebar when going to another page (it doesn't have a sidebar) and then back to the first page, sidebar dimensions becomes different.
Hi, I have been trying to use this library but when trying to hook it up on my angular 6 app, I came across an issue that I believe should have disabled any users to make the library work properly.
In the published library files
respectively in lines 60 and 63, the 2 native constants @angular/core 'defineInjectable' and 'inject' are renamed 'ɵɵdefineInjectable' and 'ɵɵinject'.
This results in successfully building or serving the app but with those 2 following warnings:
WARNING in ./node_modules/@smip/ngx-sticky-sidebar/fesm5/smip-ngx-sticky-sidebar.js 60:56-74
"export 'ɵɵdefineInjectable' was not found in '@angular/core'
WARNING in ./node_modules/@smip/ngx-sticky-sidebar/fesm5/smip-ngx-sticky-sidebar.js 60:148-156
"export 'ɵɵinject' was not found in '@angular/core'
The app is successfully build but since those 2 constants aren't properly defined, the application does not render on browsers as there is a javascript issue resulting directly from it.
smip-ngx-sticky-sidebar.js:60 Uncaught TypeError: Object(...) is not a function
at smip-ngx-sticky-sidebar.js:60
at Module../node_modules/@smip/ngx-sticky-sidebar/fesm5/smip-ngx-sticky-sidebar.js (smip-ngx-sticky-sidebar.js:62)
at __webpack_require__ (bootstrap:78)
at Module../src/app/app.module.ts (app.component.ts:13)
at __webpack_require__ (bootstrap:78)
at Module../src/main.ts (main.ts:1)
at __webpack_require__ (bootstrap:78)
at Object.0 (main.ts:12)
at __webpack_require__ (bootstrap:78)
at checkDeferredModules (bootstrap:45)
I believe this is a publishing issue due to the fact that the public.api.ts only exports the full module:
export * from './lib/ngx-sticky-sidebar.module';
I know that this should normally export everything which is defined in your module file but I have in the past came across that issue when publishing my own libraries, and I had the same issue that I am facing today with your renamed constants.
To resolve that matter, I needed to export every single components/services/directives/constants and so on... individually.
In the case of your library, I believe it should be:
export * from './lib/services/sidebar.service';
export * from './lib/directives/sidebar.directive';
export * from './lib/sidebar.interface';
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.