-
Notifications
You must be signed in to change notification settings - Fork 1
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
npm package distribution - source maps errors with webpack@5 and CRA #33
Comments
Thanks for the report! I'll try and look into this after this weekend. |
@iansan5653 thanks, appreciate it. Just ping me for more info or Steps to Reproduce. |
Hi, sorry for the long wait. I think I just need to remove the sourcemaps from the public distribution. Could you try deleting all the |
IMHO deleting the |
Hmm, I see. Another option is to package the source TS files as well, which would increase the package size but might improve the development experience. I'll have to play with it a little more and see what works. |
@iansan5653 this might probably help with the direction: microsoft/vscode-languageserver-node#879 |
That does look helpful, thank you! |
Hi, it's been a while since the last reply but I'd like to suggest editing the tsconfig file with "sourceMap" to false since sources are not packaged ? |
Same issue. |
@iansan5653 just pinging. By using your library in Swagger tooling we've managed to increase downloads of this library significantly. But the source map issues is causing a lot of issues for everybody using Swagger tooling. Would you have time to address this? If this library is no longer maintained, please let me know and I'll go for forking this library, as it's the only long term solution. Thanks for this library and thanks a lot for the answer! |
Hey, sorry for the very delayed reply - it's always hard to find time outside of work to focus on personal projects. I am taking a look at this now and will try to resolve this week. |
I tried to build a reproduction but was unable to get this warning. I'm just going to try and stop distributing sourcemaps altogether and see how that goes. I won't be able to verify the fix though until someone else here can test it. Stay tuned for a release... |
I've just published version Please try this out and let me know if it resolves your problem. If not, I'll reopen the issue. |
Hi @iansan5653,
I understand and completely relate
I can confirm, v3.0.0 no longer emits warnings in webpack@5 Thanks a lot for all your work! |
Awesome, thanks for confirming! |
Hello all,
I've noticed that npm distribution package is causing errors with CRA@5 (Create React App).
I'm not really sure what's happening there. If needed I could create a repo that reproduce the issue.
The text was updated successfully, but these errors were encountered: