react-zoom-pan-pinch icon indicating copy to clipboard operation
react-zoom-pan-pinch copied to clipboard

Publish src folder

Open Abe27342 opened this issue 3 years ago • 20 comments

This adds "src" to the set of published files, which allows source mapped URLs to resolve for consumers of this package. Resolves #265.

If the download size of the package is what we want to optimize for, an alternative approach would be to remove source map URL comments from the production build of this package.

Abe27342 avatar Dec 17 '21 23:12 Abe27342

This is a pretty huge issue honestly. It makes it really hard to see real errors in the build using React scripts 5. Could this be merged?

kokarn avatar Jan 04 '22 08:01 kokarn

Any updates on this? Really hoping to get a fix to this since it clutters the whole screen with bunch of warnings.

ttannerma avatar Jan 07 '22 08:01 ttannerma

I would also be really happy to have it merged or otherwise solved! Can't see much else on the console with these 28 warnings.

OAndris avatar Jan 12 '22 17:01 OAndris

+1 for getting this merged, it's throwing a lot of warnings on react-scripts^5

samwaters avatar Jan 27 '22 15:01 samwaters

same here, getting a lot of errors on after migrating to react-script-5, would love a solid merge :)

royair avatar Jan 31 '22 22:01 royair

This was blocking enough for me that I decided to publish myself in the meantime npm -i @kokarn/react-zoom-pan-pinch is pretty much exactly this PR, only removed a few things that wasn't needed to in the package to reduce bundle size

kokarn avatar Feb 01 '22 07:02 kokarn

The weird thing is, i edited package.json locally but it did not seem to solve the problem

royair avatar Feb 01 '22 07:02 royair

The weird thing is, i edited package.json locally but it did not seem to solve the problem

If you only edit the package.json nothing will change in regards to using my temporary package.

kokarn avatar Feb 01 '22 08:02 kokarn

oh i guess i also have to build the project in order of the package.json change to take effect, btw, is this project still maintained? I dont see any late commits...

royair avatar Feb 01 '22 09:02 royair

oh i guess i also have to build the project in order of the package.json change to take effect, btw, is this project still maintained? I dont see any late commits...

You have to run install and build, yes

kokarn avatar Feb 01 '22 09:02 kokarn

i tried to build but got rolllup related errors

royair avatar Feb 01 '22 11:02 royair

I can't seem to find the repo @kokarn , what did you remove?

jelizarovas avatar Feb 02 '22 21:02 jelizarovas

I can't seem to find the repo @kokarn , what did you remove?

I set package.json files to this and did a build

  "files": [
    "dist",
    "src/components",
    "src/constants",
    "src/core",
    "src/hooks",
    "src/utils"
  ],

kokarn avatar Feb 02 '22 22:02 kokarn

i still have the 30 warning like this one

WARNING in ./node_modules/react-zoom-pan-pinch/dist/index.esm.js Module Warning (from ./node_modules/source-map-loader/dist/cjs.js): Failed to parse source map from '/.../node_modules/react-zoom-pan-pinch/src/utils/styles.utils.ts' file: Error: ENOENT: no such file or directory, open '/.../node_modules/react-zoom-pan-pinch/src/utils/styles.utils.ts'

even after installing @kokarn/react-zoom-pan-pinch

any fix is comming ? thanks

alainib avatar Feb 23 '22 08:02 alainib

even after installing @kokarn/react-zoom-pan-pinch

what version?

kokarn avatar Feb 23 '22 08:02 kokarn

even after installing @kokarn/react-zoom-pan-pinch

what version?

@kokarn/react-zoom-pan-pinch @ 2.1.15

it work now thanks :)

I removed yarn cache completly and run yarn install a second time. first time i just remove react-zoom-pan-pinch and installed @kokarn/react-zoom-pan-pinch

alainib avatar Feb 23 '22 08:02 alainib

@prc5 anything preventing this from being merged?

lukaselmer avatar May 10 '22 15:05 lukaselmer

@prc5 Can we please merge this?

epodol avatar Jul 01 '22 20:07 epodol

The src folder is included in the fork @pronestor/react-zoom-pan-pinch that I created.

janaagaard75 avatar Jul 02 '22 04:07 janaagaard75

Can we merge this?

meredithmurfin avatar Aug 17 '22 14:08 meredithmurfin

+1 Any chance of a merge?

OliDow avatar Dec 30 '22 19:12 OliDow

When the fix will be released?

ViktorSoroka07 avatar Jan 11 '23 22:01 ViktorSoroka07

@ViktorSoroka07 this weekend 🙏

prc5 avatar Jan 12 '23 06:01 prc5

Thank you @prc5 🙏

lukaselmer avatar Jan 12 '23 06:01 lukaselmer

I'm seeing this issue with ^3.0.2, looks like it's broken again?

robertwilkinson-dev avatar Mar 09 '23 20:03 robertwilkinson-dev

@robertwilkinson-dev Yes, someone already has created a new ticket for this: https://github.com/prc5/react-zoom-pan-pinch/issues/356

dawi avatar Mar 10 '23 09:03 dawi