-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
JS map file 'sources' incorrect for dist/esm files #303
Comments
@AnthW Thanks for the bug report! Would you be able to contribute a minimal repro test case, including a |
@davidgoli Sure. I have made https://github.com/anthw/rrule-map-issue Just run |
@davidgoli I have done a bit of research and I think the solution might be to add |
This will ensure .map file sources are set to the dist folder, rather than the src folder. Fixes jkbrzt#303
Published v2.6.0. |
Hi @davidgoli, I am using the In the console of the following example you can see a next warning
|
I think I must have test wrong when I thought it was working as I still get the issue as reported too. Sorry! |
@davidgoli any news? |
@anthwinter This is an issue for me again, can it be reopened? |
@joshkostal I originally created a PR #305 to fix this, which was succeeded by #310, so #305 was closed without action. I thought #310 fixed the issue but hadn't. So maybe #305 could be looked at again @davidgoli ? My temporary work around for this was to exclude rrule within the loader. Not great, but stops the mass of warnings.
|
Would also love to see or help with a resolution to this. I'm currently suppressing the warnings on my webpack-dev-server using @anthwinter 's solution but would rather not have to do so if that's possible. Seeing the same warnings as above, using rrule 2.6.4 with webpack 4.44.5 + webpack-dev-server 3.10.2 |
I'm seeing the same warnings with rrule 2.6.6. I would also like if this issue was resolved. |
…og with warnings. See jkbrzt/rrule#303
Fix incorrect source paths in generated source maps (#303)
A release would be welcome. |
i have the same issue with Create React App v5 (webpack v5) "rrule": "^2.6.8",
|
Having the same issue as @RiodeJaneiroo when I tried to update a react app that uses this library to create-react-app v5.0.0. The I'm not sure how this issue can be resolved save for including the typescript source files in an install or removing sourcemaps in the generated dist. For the time being I am working around this by pointing my |
This needs reopening as its still an issue with react-scripts 5.0.0 and rrule 2.6.8. @chunkily is this forked branch you mentioned public? |
I'm having the same issue in create-react-app. Perhaps using inline source maps in the library would mitigate this issue? I had a similar problem while building a library recently, and inline sourcemaps resolved it. In {
"compilerOptions": {
...
"sourceMap": true,
"inlineSources": true,
},
...
} |
Same issue here with "rrule": "^2.6.8", |
It is indeed public. https://github.com/chunkily/rrule/tree/sourcemapless So here are the steps I took
|
Can someone please verify whether this still reproduces with v2.6.9? Thanks! |
@davidgoli Unfortunately my supposed fix included in version 2.6.9 did in fact not fix this issue. My bad. |
Any idea how to get it fixed? |
Well, I can think of a three possible solutions, but each of them has their own cons.
|
I think the easiest solution is to include the src (.ts files) folder when installing. |
Isn't this fixed yet, it's been there for a month already and block us to release our application with react-scripts 5.x |
Can this be re-opened? |
I'm still having this issue after upgrading react-scripts to 5.0.0. |
Any updates? |
This error still seems to be present on v2.7.1. |
I'am having the same issue. Any updates? |
This should be resolves by PR #634. |
Reporting an issue
Thank you for taking an interest in
rrule
! Please include the following inyour report:
Verify that you've looked through existing issues for duplicates before
creating a new one
[] Code sample reproducing the issue. Be sure to include all input values you
are using such as the exact RRule string and dates.
N/a
[] Expected output
N/a
[] Actual output
N/a
The version of
rrule
you are using2.5.6
Your operating system
macOs High Sierra 10.13.6
Your local timezone (run
$ date
from the command lineof the machine showing the bug)
Fri 30 Nov 2018 09:04:16 GMT
I am using Webpack v4 to bundle my vendor dependencies, I'm also using the Source Map Loader to extract source maps from my vendor files into one, this includes the rrule package.
I am getting warnings for each rrule 'esm' file stating it cannot find the source map, as it is trying to find it in the
src
directory, not the 'dist' directory.If you look at one of the
*.map
files within thedist/esm
folder of rrule, you will see that thesources
point to thesrc
directory, and this is what is causing the warnings when using the source-map-loader to try and extract all vendor mappings.The text was updated successfully, but these errors were encountered: