-
Notifications
You must be signed in to change notification settings - Fork 41
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
How do you handle typings/tsd? #37
Comments
I use only @types repository from npm, which is a proper way recommended by TypeScript to handle managing types in your application. e.g. This pattern even support using specific version of typings for a library you are using: e.g. |
I see i'm migrating our website from a rather obsolete build system to using this one instead, which shows great promise. But I'm currently running into a bunch of problems.
|
Hmm, my bad i had files with |
I'm having a slight issue with the dependency
|
@macnibblet there is a problem with the library you are using, I have already filed an issue: goldenyz/react-perfect-scrollbar#1 the solution is to change the main entry point of library to min version rather than normal as it is referencing some webpack internal loading features. |
Awesome thanks :D next question how do i import our styles ? We have written them in basic scss and the readme says it supports it but I cannot figure how to import them |
No problem :) I can recommend also http://typestyle.io/ for TS projects but it is a different takeover on styling and need an open mind in a team :) |
Ah I forgot to post react-perfect-scrollbar fix: |
@piotrwitek Awesome, but alas I have another question. Almost successfully replaced the old build system with the new one. But when I reload the page now with a none "index" route e.g |
you need history api fallback for this to work on currently used dev server (jspm-hmr) |
@macnibblet The issue goldenyz/react-perfect-scrollbar#1 has been fixed in the last commit. But I still have a question: why can't I reference the non-minified version, just like the other libs doing (https://github.com/reactjs/react-redux)? |
@goldenyz First thanks for the fix! :) |
@piotrwitek Thanks for the information. I will try to make it reference to the non-minified version again. Do you know how to verify that my fix is correct? |
@goldenyz you can use the branch I have created for @macnibblet to verify against ES Modules powered bundlers like JSPM/rollup, (necessary code example is already implemented there). just do:
now reinstall react-perfect-scrollbar to new version with: run |
@piotrwitek Thanks. It is really kind of you. Will let you know if I fixed it. |
@goldenyz I'm glad I could help, I also appreciate your efforts to fix the issue for other environments :) |
@piotrwitek FYI. It has been fixed in the newest version, which still reference to the non-minified version in main. Thanks again for raising this issue. |
@goldenyz cool! I have updated branch demo to a new version and tested. Now it's working without problems, great job! |
No description provided.
The text was updated successfully, but these errors were encountered: