Skip to content
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

Failed to parse source map of react-double-scrollbar #467

Closed
TCM5 opened this issue Jan 25, 2022 · 23 comments · Fixed by #804
Closed

Failed to parse source map of react-double-scrollbar #467

TCM5 opened this issue Jan 25, 2022 · 23 comments · Fixed by #804
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@TCM5
Copy link

TCM5 commented Jan 25, 2022

Describe the bug
This is not a material-table-core problem itself, but a rather from the dependecy react-double-scrollbar. This was already reported in rds repository (https://github.com/umchee/react-double-scrollbar/issues/9) , and seems to be introduced on the release that material-table-core is using.

The project react-double-scrollbar seems to be not very active, so maybe a version downgrade of this dependecy should be performed.

To Reproduce
Just install the latest version of material-table-core and start application.

Additional context
A workaround is to disable the source map generation or add a resolution in case of using package.json.

@TCM5 TCM5 added the bug Something isn't working label Jan 25, 2022
@Domino987
Copy link
Contributor

Well it looks like even earlier versions have the same problem, so downgrading does not fix this.
And since its just a warning, not sure if this is too urgent.

@scrozier
Copy link

I'm seeing the same thing. Agreed that it's not urgent, but it does really clutter up my npm start window, making it a bit harder to find genuine issues. I'll have a look to see if there's a reasonable fix.

@sairam0903
Copy link

As a work around to disable source maps, please refer to mswjs/msw#1030 (comment)

@strawji02
Copy link

As a work around to disable source maps, please refer to mswjs/msw#1030 (comment)

Disabling the sourcemap makes the typescript server very slow. I want to see the beautiful npm start window.

@stale
Copy link

stale bot commented Jul 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

@stale stale bot added the wontfix This will not be worked on label Jul 13, 2022
@stale stale bot closed this as completed Jul 20, 2022
@oskarlh
Copy link

oskarlh commented Oct 12, 2022

Can this be reopened? It's still an issue. The owner of react-double-scrollbar has been inactive on GitHub for over 5 years - react-double-scrollbar will not be fixed

@Domino987
Copy link
Contributor

I am open for suggestions on how to fix this.

@oskarlh
Copy link

oskarlh commented Oct 14, 2022

Forking or replacing the library

@Domino987
Copy link
Contributor

Go ahead ;)

@donavan-tangible
Copy link

donavan-tangible commented Mar 9, 2023

Consider to use this fork until the fix is merged

package.json:
...
"dependencies": {
"react-double-scrollbar": "https://github.com/IniterWorker/react-double-scrollbar.git",
}

@oskarlh
Copy link

oskarlh commented Mar 9, 2023

@donovan-tangible Nice. Should you add #package-map-missing-issue after .git to get the right branch?

@donavan-tangible
Copy link

Finally, in my package.json file, I make it work like this:

package.json:

{
...
"dependencies": {
...
},
  "resolutions": {
    "react-double-scrollbar": "https://github.com/IniterWorker/react-double-scrollbar.git"
  },
}

@imnasnainaec
Copy link
Contributor

imnasnainaec commented Apr 12, 2023

@donavan-tangible's solution is for yarn.

The npm solution uses overrides:

  "overrides": {
    "react-double-scrollbar": "IniterWorker/react-double-scrollbar"
  },

See https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides, https://docs.npmjs.com/cli/v8/configuring-npm/package-json#github-urls.

@imnasnainaec
Copy link
Contributor

@donavan-tangible Thank you for forking this repo to help solve this issue! The above addition to my package.json does successfully pull from your fork, but doesn't resolve the issue because your master branch is identical to umchee's. When I use "IniterWorker/react-double-scrollbar#a59d281" to pull from your package-map-missing-issue branch, my compile fails to resolve:

Failed to compile.

Module not found: Error: Can't resolve 'react-double-scrollbar' in '[...]/node_modules/@material-table/core/dist/components/MTableScrollbar'
ERROR in ./node_modules/@material-table/core/dist/components/MTableScrollbar/index.js 10:51-84
Module not found: Error: Can't resolve 'react-double-scrollbar' in '[...]/node_modules/@material-table/core/dist/components/MTableScrollbar'

webpack compiled with 1 error

In this case, my node_modules/react-double-column is just a copy of the branch without the dist or its contents.

@donavan-tangible
Copy link

@imnasnainaec
Can you try with this in your package.json:
...
"resolutions": {
"react-double-scrollbar": "https://github.com/IniterWorker/react-double-scrollbar.git"
},
...

@oskarlh
Copy link

oskarlh commented Apr 12, 2023

@donavan-tangible That doesn't work. We need #package-map-missing-issue after .git because your changes are in the "package-map-missing-issue" branch

@donavan-tangible
Copy link

@oskarlh
From our side it works really well with yarn.
I didn't test with npm...
Maybe you will need to propose solution with npm.

@Domino987
Copy link
Contributor

Yes both should work for this change to be implemented 😉 that is for looking into this though

@imnasnainaec
Copy link
Contributor

The DoubleScrollbar isn't even necessary. It's currently being used here for its style, even though react-double-scrollbar doesn't have any custom styling. Its contribution is entirely about position/location. Here's a pr to dump the troublesome package: #804

@amir0ff
Copy link

amir0ff commented Nov 7, 2023

@donavan-tangible Thank you for forking this repo to help solve this issue! The above addition to my package.json does successfully pull from your fork, but doesn't resolve the issue because your master branch is identical to umchee's. When I use "IniterWorker/react-double-scrollbar#a59d281" to pull from your package-map-missing-issue branch, my compile fails to resolve:

Failed to compile.

Module not found: Error: Can't resolve 'react-double-scrollbar' in '[...]/node_modules/@material-table/core/dist/components/MTableScrollbar'
ERROR in ./node_modules/@material-table/core/dist/components/MTableScrollbar/index.js 10:51-84
Module not found: Error: Can't resolve 'react-double-scrollbar' in '[...]/node_modules/@material-table/core/dist/components/MTableScrollbar'

webpack compiled with 1 error

In this case, my node_modules/react-double-column is just a copy of the branch without the dist or its contents.

Hey there 👋🏼 😄

what is the solution until #804 is merged?

were you able to solve the issue?

@imnasnainaec
Copy link
Contributor

@amir0ff I never managed a work-around; #804 is my first solution.

@amir0ff
Copy link

amir0ff commented Nov 7, 2023

@amir0ff I never managed a work-around; #804 is my first solution.

Thanks for the quick reply!

I gave up for now and committed my repo with that webpack compile warning 😄

Things are still working for now 👍🏼

@Domino987
Copy link
Contributor

I'll merge this tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants