Coder Social home page Coder Social logo

ngx-sticky-sidebar's Introduction

Hi there 👋

ngx-sticky-sidebar's People

Contributors

smip avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

luki215

ngx-sticky-sidebar's Issues

Can't Resolve 'sticky-sidebar'

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'```

Sidebar crashes after moving back from another page

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.

ɵɵdefineInjectable and ɵɵinject not found in '@angular/core

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

  • fesm5/smip-ngx-sticky-sidebar.js
  • fesm2015/smip-ngx-sticky-sidebar.js

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';

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.