fortune-sheet icon indicating copy to clipboard operation
fortune-sheet copied to clipboard

Getting loading chunk error

Open Aafrin-Anjum opened this issue 2 years ago • 4 comments

My webpack is picking esm.js file for the fortune-sheet package, which is giving me loading chunk error.

But When I am changing the file to umd.js manually inside node modules fortune-sheet file it is working fine locally . Looking for some solutions for this issue.

Below is the screen shot of the issue I am facing. image

Aafrin-Anjum avatar Feb 03 '23 12:02 Aafrin-Anjum

Sorry, have no idea about that. Haven't encountered this issue at present.

shuanhukexuejia avatar Feb 09 '23 02:02 shuanhukexuejia

@Aafrin-Anjum could you tell us which bowser do you use, and may be you can update to the latest version then have a try.

gazedreamily avatar Mar 27 '23 01:03 gazedreamily

For anybody else stuck here, this was solved using an alias in the resolve property of webpack -

"@fortune-sheet/react": "@fortune-sheet/react/dist/index.umd.js",

This can be closed now @gazedreamily

sanchit3008 avatar Jun 06 '23 18:06 sanchit3008

^bump @gazedreamily

sanchit3008 avatar Jun 07 '23 08:06 sanchit3008

closing as this isnt an issue with the library

sanchit3008 avatar Mar 17 '24 17:03 sanchit3008