import { Document, Page, Text } from "@react-pdf/renderer";
function App() {
return (
<div className="App">
<header className="App-header">
<Document>
<Page size="a4">
<Text>Some text</Text>
</Page>
</Document>
</header>
export default App;
yarn start
You should see a number of errors like this pop up
FULL ERROR IN COMMENTS SO THE ISSUE ISN'T SPAMMY WITH A TON OF CODE LINES
Yarn version: 1.22.10
package.json:
{ "name": "cityx-cms_v3", "version": "0.1.0", "private": true, "dependencies": { "@react-pdf/renderer": "^2.0.21", "@testing-library/jest-dom": "^5.16.1", "@testing-library/react": "^12.1.2", "@testing-library/user-event": "^13.5.0", "react": "^17.0.2", "react-dom": "^17.0.2", "react-scripts": "5.0.0", "web-vitals": "^2.1.3" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }
node version: 14.16.1
DavidLemayian, sandro-sh, yeuann, Tmfwang, Hammaad-M, and Facelessdivine reacted with thumbs up emoji
thomaskolmans, pieroguerrero, and KalidasGavali reacted with eyes emoji
All reactions
Failed to compile.
Module not found: Error: Can't resolve 'stream' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/@react-pdf/pdfkit/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
- install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "stream": false }
assets by path static/js/*.js 6.25 MiB
asset static/js/bundle.js 6.25 MiB [emitted] (name: main) 1 related asset
asset static/js/node_modules_web-vitals_dist_web-vitals_js.chunk.js 6.89 KiB [emitted] 1 related asset
asset index.html 1.67 KiB [emitted]
asset asset-manifest.json 458 bytes [emitted]
cached modules 5.33 MiB [cached] 922 modules
runtime modules 32.4 KiB 16 modules
ERROR in ./node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.es.js 1:0-28
Module not found: Error: Can't resolve 'stream' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/@react-pdf/pdfkit/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
- install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "stream": false }
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 11:0-44 210:24-35
@ ./src/App.js 4:0-59 12:37-45 13:39-43 15:41-45
@ ./src/index.js 7:0-24 11:33-36
ERROR in ./node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.es.js 2:0-24
Module not found: Error: Can't resolve 'zlib' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/@react-pdf/pdfkit/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
- install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "zlib": false }
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 11:0-44 210:24-35
@ ./src/App.js 4:0-59 12:37-45 13:39-43 15:41-45
@ ./src/index.js 7:0-24 11:33-36
ERROR in ./node_modules/@react-pdf/png-js/lib/png-js.browser.es.js 1:0-24
Module not found: Error: Can't resolve 'zlib' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/@react-pdf/png-js/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
- install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "zlib": false }
@ ./node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.es.js 4:0-36 20665:21-24
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 11:0-44 210:24-35
@ ./src/App.js 4:0-59 12:37-45 13:39-43 15:41-45
@ ./src/index.js 7:0-24 11:33-36
ERROR in ./node_modules/blob-stream/index.js 1:21-47
Module not found: Error: Can't resolve 'stream' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/blob-stream'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
- install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "stream": false }
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 8:0-37 259:37-47
@ ./src/App.js 4:0-59 12:37-45 13:39-43 15:41-45
@ ./src/index.js 7:0-24 11:33-36
ERROR in ./node_modules/blob-stream/index.js 3:11-26
Module not found: Error: Can't resolve 'util' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/blob-stream'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 8:0-37 259:37-47
@ ./src/App.js 4:0-59 12:37-45 13:39-43 15:41-45
@ ./src/index.js 7:0-24 11:33-36
ERROR in ./node_modules/restructure/src/EncodeStream.js 23:11-28
Module not found: Error: Can't resolve 'stream' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/restructure/src'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
- install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "stream": false }
@ ./node_modules/restructure/index.js 5:2-54
@ ./node_modules/@react-pdf/fontkit/lib/fontkit.browser.es.js 1:0-28 38:32-46 109:20-28 110:13-21 111:14-22 112:11-18 113:17-25 115:20-28 116:17-25 117:15-23 118:11-19 120:28-36 121:21-29 122:19-26 124:21-29 125:16-24 126:11-19 128:21-28 128:48-56 129:24-31 129:44-52 130:28-36 131:15-23 132:18-27 132:28-36 135:21-30 135:31-39 139:23-40 139:41-49 142:12-20 144:14-22 146:17-28 146:29-36 150:12-20 151:14-22 152:23-30 152:31-39 156:20-31 157:25-36 157:37-45 161:12-20 163:14-22 165:16-24 169:17-25 170:19-27 171:16-24 172:17-28 172:29-37 173:21-31 173:32-40 175:19-30 175:31-39 176:17-28 176:29-36 177:23-34 177:35-43 178:25-36 178:37-45 184:12-20 185:14-22 186:15-23 187:16-24 188:22-33 188:34-42 192:18-28 192:29-37 193:12-20 194:14-22 195:14-25 195:26-33 196:13-21 197:16-27 201:18-28 201:29-37 202:12-20 203:14-22 204:15-23 205:16-24 206:22-33 206:34-42 210:18-28 210:29-37 211:12-20 212:14-22 213:13-21 214:16-27 218:18-28 218:29-37 219:12-20 220:14-22 221:13-21 222:16-27 226:12-20 227:16-24 228:22-33 231:20-28 232:14-22 234:14-22 236:13-22 236:23-31 242:15-23 243:11-19 244:16-24 245:14-21 247:15-23 248:11-18 250:12-19 252:22-30 253:15-23 255:9-17 256:14-22 258:15-22 258:23-30 259:16-23 259:24-31 260:8-15 262:8-15 264:8-15 266:8-15 268:16-26 268:27-35 269:17-25 271:21-28 272:20-27 274:19-26 277:15-23 278:11-18 279:10-17 281:11-18 283:11-18 285:19-27 287:22-29 289:23-30 291:14-21 292:18-25 294:17-24 296:15-22 298:16-26 298:27-34 299:20-27 301:19-27 304:20-28 305:11-19 306:11-18 308:15-23 309:15-26 312:16-27 312:28-35 316:15-23 317:11-18 318:13-21 320:13-21 322:15-23 324:22-30 326:24-32 328:12-20 330:21-29 332:14-22 334:19-27 336:22-30 338:20-28 340:25-33 342:24-32 344:21-29 787:21-29 788:14-22 789:14-22 790:14-22 791:10-18 792:10-18 793:14-23 793:24-32 793:38-46 801:24-32 802:10-18 803:11-20 803:21-29 803:35-43 808:20-37 808:38-46 810:11-19 811:18-26 812:17-24 815:11-19 816:18-26 817:17-24 818:18-26 819:18-25 897:14-31 897:32-40 899:19-26 901:19-27 903:18-26 905:16-26 905:27-35 907:21-28 909:21-28 911:23-30 913:23-30 915:23-30 917:23-30 919:25-32 921:25-32 923:20-27 925:24-31 927:18-25 929:16-23 929:24-31 931:21-28 931:29-37 932:18-26 934:21-31 934:32-40 936:22-30 938:21-29 944:18-25 945:19-26 946:17-24 947:15-23 948:16-24 949:23-30 949:31-39 953:18-25 954:19-26 955:17-24 956:15-23 957:16-24 958:23-30 958:31-39 959:13-20 960:15-22 961:17-25 962:15-23 963:16-24 966:18-25 967:19-26 968:17-24 969:15-23 970:16-24 971:23-30 971:31-39 972:13-20 973:15-22 974:17-25 975:15-23 976:16-24 977:29-37 978:29-37 983:15-32 983:33-42 986:17-26 988:23-30 990:24-31 992:18-26 994:18-26 996:18-26 998:17-25 1000:17-25 1006:20-28 1007:24-31 1007:32-40 1008:15-22 1008:27-35 1008:36-43 1011:20-28 1012:17-24 1012:25-32 1017:13-20 1017:21-29 1022:14-22 1023:21-28 1023:29-36 1027:15-23 1028:20-27 1028:28-35 1030:15-32 1032:17-24 1032:25-33 1035:17-24 1035:25-33 1055:15-23 1056:27-34 1056:35-42 1058:15-22 1058:27-35 1131:19-26 1133:19-27 1135:19-27 1137:19-27 1176:32-40 1188:19-26 1190:19-27 1192:19-27 1194:19-27 1211:32-40 1226:19-26 1228:19-27 1230:19-27 1232:19-27 1689:2-11 1735:23-31 1736:16-26 1736:27-35 1737:19-27 1738:16-24 1739:22-29 1739:30-38 1741:24-32 1742:11-19 1743:15-24 1743:25-33 1747:17-25 1748:22-31 1748:32-40 1749:9-17 1750:22-29 1752:23-31 1753:11-19 1754:14-23 1754:24-32 1758:21-28 1758:43-51 1762:18-26 1763:17-25 1765:15-23 1766:25-32 1766:33-41 1768:24-32 1769:11-19 1770:15-24 1770:25-33 1774:22-29 1774:45-53 1775:22-30 1776:22-29 1777:13-23 1777:24-31 1781:19-27 1782:16-24 1784:19-27 1785:19-26 1785:31-40 1785:41-49 1786:26-36 1786:37-45 1790:13-24 1790:29-38 1790:39-47 1790:58-66 1796:22-30 1797:9-17 1798:7-15 1799:22-30 1801:19-36 1801:37-45 1803:16-24 1804:16-23 1804:24-32 1807:16-24 1808:22-29 1814:27-35 1815:9-17 1816:7-15 1817:9-17 1819:19-36 1819:37-45 1822:16-24 1823:16-24 1824:25-32 1824:33-41 1828:21-29 1829:26-33 1835:17-25 1836:5-13 1838:5-13 1840:15-23 1845:23-31 1846:17-25 1847:19-27 1849:15-23 1850:14-22 1851:15-23 1852:13-20 1852:21-29 1855:21-28 1857:18-25 1857:30-39 1857:40-48 1857:57-65 1858:20-28 1859:14-22 1860:15-23 1861:15-22 1861:23-31 1864:21-28 1866:19-26 1866:31-40 1866:41-49 1866:63-71 1867:18-35 1867:36-44 1870:18-27 1870:28-36 1871:18-26 1872:18-25 1872:30-39 1872:40-48 1876:18-27 1876:28-36 1877:18-27 1877:28-36 1878:17-25 1879:18-25 1879:30-39 1879:40-48 1882:16-24 1883:17-25 1884:19-26 1884:31-40 1884:41-49 1885:23-30 1891:20-28 1892:23-31 1893:17-24 1893:25-33 1894:19-27 1895:13-20 1895:21-29 1898:23-31 1899:17-24 1899:25-33 1900:15-23 1901:21-28 1903:23-30 1903:35-44 1903:45-53 1903:67-75 1904:26-43 1904:44-52 1907:18-27 1907:28-36 1908:16-24 1909:23-30 1909:35-44 1909:45-53 1913:18-27 1913:28-36 1914:27-36 1914:37-45 1915:23-32 1915:33-41 1916:27-36 1916:37-45 1917:16-24 1918:23-30 1918:35-44 1918:45-53 1922:25-33 1923:27-34 1923:39-48 1923:49-57 1924:21-29 1925:23-30 1925:35-44 1925:45-53 1926:25-33 1927:27-34 1927:39-48 1927:49-57 1928:17-25 1929:23-30 1939:18-25 1940:32-40 1945:30-38 1946:13-21 1947:15-23 1948:24-31 1948:36-43 1950:19-27 1951:19-26 1951:27-34 1954:20-27 1954:28-34 1961:28-36 1962:13-21 1963:19-27 1964:20-28 1965:21-28 1965:29-37 1966:17-24 1968:29-37 1969:10-18 1970:27-36 1970:37-45 1971:22-30 1972:25-32 1972:37-46 1972:47-55 1978:25-42 1978:43-51 1980:15-23 1981:22-30 1983:23-31 1984:18-26 1985:22-29 1985:34-43 1985:44-52 1987:41-49 1988:16-24 1989:29-38 1989:39-47 1993:35-43 1994:11-20 1995:21-29 1996:21-28 1998:33-41 1999:20-29 1999:30-38 2002:32-41 2002:42-50 2006:28-36 2007:16-24 2008:16-24 2009:31-39 2010:31-38 2056:11-25 2060:2-10 2062:17-25 2063:9-17 2064:9-16 2066:17-25 2067:9-17 2068:9-17 2070:28-45 2072:12-19 2073:15-22 2073:23-30 2076:13-20 2077:16-23 2111:2-9 2113:27-44 2113:45-52 2115:16-23 2115:24-32 2133:19-27 2134:9-17 2135:6-13 2137:19-27 2138:9-17 2139:6-14 2141:19-36 2141:37-44 2143:13-20 2143:21-28 2148:13-21 2149:16-23 2150:14-22 2153:13-21 2154:16-23 2155:14-22 2186:25-33 2187:10-18 2191:17-34 2191:35-44 2193:13-20 2194:13-20 2195:32-40 2197:34-42 2201:13-20 2202:12-20 2375:25-33 2376:14-22 2377:15-22 2379:15-23 2380:16-24 2381:16-24 2382:22-29 2383:25-33 2384:15-22 2386:21-29 2387:10-17 2388:9-16 2389:16-22 2390:16-22 2391:15-22 2392:16-22 2393:16-22 2394:15-22 2396:23-31 2397:10-17 2398:9-16 2399:12-18 2400:12-18 2401:11-18 2403:24-32 2404:9-17 2405:11-17 2406:11-17 2413:4-21 2437:13-23 2437:24-31 2438:19-27 2439:20-27 2443:13-23 2443:24-31 2444:19-27 2445:20-27 2449:13-21 2450:14-22 2454:13-21 2455:14-22 2458:13-21 2459:14-22 2462:26-34 2463:12-18 2464:13-19 2465:12-19 2466:23-29 2467:25-31 2468:15-21 2469:15-21 2470:16-22 2471:15-21 2472:14-20 2473:11-21 2473:22-28 2475:25-33 2476:13-21 2477:10-18 2479:24-41 2479:42-50 2481:17-25 2482:21-29 2485:21-28 2485:29-37 2490:15-23 2494:21-28 2494:29-37 2499:15-23 2500:20-27 2505:15-23 2507:15-23 2508:24-31 2508:32-40 2511:29-37 2512:19-27 2513:18-26 2514:16-25 2514:26-34 2516:26-34 2517:26-35 2517:36-44 2517:50-57 2520:19-27 2521:26-34 2522:12-20 2525:19-27 2526:17-25 2527:9-16 2528:9-16 2529:12-19 2530:13-23 2530:24-31 2532:15-23 2533:11-19 2535:12-20 2536:13-20 2538:21-29 2539:8-16 2540:14-22 2541:20-27 2541:32-41 2541:42-50 2548:15-23 2549:11-19 2550:13-23 2550:24-32 2551:16-24 2552:19-26 2552:31-40 2552:41-49 2554:22-30 2555:7-15 2557:16-24 2564:26-34 2565:7-15 2568:19-27 2571:13-21 2573:15-23 2574:11-19 2575:23-31 2576:23-32 2576:33-41 2576:47-54 2577:20-29 2577:30-38 2577:44-51 2580:19-27 2582:22-30 2583:8-15 2584:9-16 2585:7-14 2586:9-16 2588:15-32 2588:33-41 2590:23-31 2591:17-25 2592:21-29 2593:22-31 2593:32-40 2593:46-53 2594:28-35 2594:36-44 2598:32-41 2598:42-50 2598:56-63 2598:64-72 2599:33-42 2599:43-51 2599:57-64 2599:65-73 2600:38-47 2600:48-56 2600:62-69 2600:70-78 2603:20-37 2603:38-46 2606:16-23 2611:16-23 2613:20-28 2615:20-28 2620:16-23 2622:21-30 2622:31-39 2626:21-29 2627:16-24 2629:18-26 2630:18-25 2630:30-39 2630:40-48 2632:27-35 2633:11-19 2635:16-25 2635:26-34 2639:16-25 2639:26-34 2644:17-25 2645:16-25 2645:26-34 2647:16-25 2647:26-34 2649:19-27 2651:25-32 2654:28-36 2655:11-19 2657:14-23 2657:24-32 2661:21-29 2662:18-27 2662:28-36 2664:21-30 2664:31-39 2666:20-28 2668:26-33 2671:27-35 2672:11-19 2674:14-23 2674:24-32 2678:25-32 2678:51-59 2680:22-29 2680:34-42 2680:47-55 2681:17-25 2682:19-28 2682:29-37 2684:22-31 2684:32-40 2686:15-32 2686:33-41 2688:19-28 2688:29-37 2690:18-27 2690:28-36 2695:28-37 2695:38-46 2698:22-29 2698:30-38 2698:40-48 2699:21-29 2700:16-25 2700:26-34 2701:14-22 2702:20-27 2702:32-41 2702:42-50 2704:21-38 2704:39-47 2707:16-23 2711:21-29 2715:16-23 2716:21-30 2716:31-39 2719:19-26 2719:31-40 2719:41-49 2719:64-72 2720:23-31 2721:16-25 2721:26-34 2722:17-25 2723:17-24 2723:29-38 2723:39-47 2725:27-35 2726:22-30 2727:16-24 2728:16-23 2728:28-37 2728:38-46 2730:15-32 2730:33-41 2732:23-32 2732:33-41 2733:20-29 2733:30-38 2734:22-31 2734:32-40 2735:28-37 2735:38-46 2739:26-35 2739:36-44 2742:26-35 2742:36-44 2743:28-37 2743:38-46 2746:22-32 2746:33-41 2748:14-21 2749:14-21 2750:12-19 2751:12-19 2752:18-27 2752:28-36 2756:18-27 2756:28-36 2760:18-27 2760:28-36 2764:18-27 2764:28-36 2803:15-23 2819:26-34 2820:15-23 2824:18-25 2824:43-51 2825:23-31 2829:17-34 2829:35-43 2832:17-24 2833:17-24 2837:17-24 2838:17-24 2839:17-25 2843:17-24 2844:17-24 2845:22-31 2845:32-40 2846:22-31 2846:32-40 2849:26-34 2850:19-28 2850:29-37 2853:18-27 2853:28-36 2857:21-29 2858:9-17 2859:18-27 2859:28-36 2863:20-27 2863:40-48 2864:21-28 2864:33-42 2864:43-51 2867:20-27 2867:40-48 2868:26-33 2868:38-47 2868:48-56 2871:25-32 2871:50-58 2872:24-31 2872:36-45 2872:46-54 2872:73-81 2873:21-38 2874:9-26 2874:27-35 2878:20-29 2878:30-38 2883:20-29 2883:30-38 2885:18-26 2886:18-29 2889:9-26 2889:27-35 2893:20-29 2893:30-38 2896:20-28 2897:20-31 2897:36-45 2897:46-54 2901:20-29 2901:30-38 2904:21-30 2904:31-39 2905:21-30 2905:31-39 2906:19-27 2907:19-27 2908:24-35 2908:40-51 2913:12-20 2914:18-27 2914:28-36 2915:20-28 2916:26-33 2920:12-20 2921:22-31 2921:32-40 2922:22-31 2922:32-40 2923:16-24 2924:19-28 2924:29-37 2925:19-28 2925:29-37 2929:12-20 2930:22-31 2930:32-40 2931:26-35 2931:36-44 2932:16-24 2933:19-28 2933:29-37 2934:23-32 2934:33-41 2938:12-20 2939:23-32 2939:33-41 2940:23-32 2940:33-41 2941:16-24 2942:20-29 2942:30-38 2943:20-29 2943:30-38 2951:15-23 2952:16-24 2954:19-28 2954:29-37 2959:15-32 2959:33-41 2961:20-29 2961:30-38 2962:21-30 2962:31-39 2963:20-29 2963:30-38 2967:27-36 2967:37-45 2971:19-26 2971:27-35 2971:37-45 2973:19-27 2974:9-17 2975:13-21 2976:18-25 2976:26-34 2980:22-29 2980:34-43 2980:44-52 2980:65-73 2981:21-38 2982:9-26 2982:27-35 2985:20-29 2985:30-38 2986:20-27 2989:20-29 2989:30-38 2990:18-26 2991:22-33 2991:34-42 2996:17-25 2997:18-27 2997:28-36 2998:11-19 2999:19-30 2999:35-44 2999:45-53 3003:17-25 3004:18-27 3004:28-36 3005:11-19 3006:22-33 3006:38-47 3006:48-56 3010:17-25 3011:18-27 3011:28-36 3012:11-19 3013:22-33 3013:38-47 3013:48-56 3021:17-25 3022:16-24 3024:19-28 3024:29-37 3028:17-25 3029:18-27 3029:28-36 3030:27-34 3030:39-48 3030:49-57 3031:25-33 3032:27-34 3032:39-48 3032:49-57 3033:16-24 3034:21-28 3034:29-37 3039:15-32 3039:33-41 3041:20-29 3041:30-38 3042:21-30 3042:31-39 3043:20-29 3043:30-38 3047:27-36 3047:37-45 3050:26-33 3050:34-42 3050:44-52 3051:23-31 3052:27-36 3052:37-45 3053:28-37 3053:38-46 3054:27-36 3054:37-45 3055:28-37 3055:38-46 3056:24-33 3056:34-42 3057:27-36 3057:37-45 3058:28-37 3058:38-46 3059:27-36 3059:37-45 3060:28-37 3060:38-46 3061:24-33 3061:34-42 3063:22-29 3063:34-43 3063:44-52 3063:69-77 3064:28-36 3065:11-19 3066:19-28 3066:29-37 3068:21-29 3069:22-31 3069:32-40 3069:46-53 3069:54-62 3069:64-72 3071:22-31 3071:32-40 3072:16-24 3073:22-29 3075:27-35 3076:11-19 3077:14-23 3077:24-32 3081:15-23 3082:11-19 3084:15-23 3085:18-25 3118:23-31 3129:27-35 3130:15-23 3131:12-20 3132:15-22 3134:15-23 3135:16-24 3136:16-24 3137:26-35 3137:36-44 3138:27-36 3138:37-45 3139:18-27 3139:28-36 3140:18-27 3140:28-36 3142:20-28 3143:10-18 3144:10-18 3145:10-18 3147:25-33 3148:16-26 3148:27-35 3149:15-23 3151:17-25 3153:15-23 3154:13-21 3156:13-21 3158:10-18 3160:18-25 3161:23-30 3163:20-28 3164:16-24 3166:25-35 3166:36-44 3170:15-23 3171:11-19 3173:13-21 3174:18-25 3177:23-31 3178:13-20 3179:16-23 3180:14-21 3180:22-29 3185:15-23 3186:11-19 3187:14-21 3188:20-27 3189:15-22 3191:19-27 3192:8-16 3193:9-17 3194:9-16 3196:23-31 3197:14-22 3198:11-19 3199:15-22 3199:23-31 3204:21-29 3211:14-25 3211:26-33 3213:23-40 3215:12-20 3216:17-25 3217:19-27 3218:16-24 3219:15-22 3222:14-22 3223:19-28 3223:29-37 3226:20-29 3226:30-38 3229:15-24 3229:25-33 3234:16-24 3235:20-27 3236:20-27 3237:21-28 3238:11-18 3239:19-26 3239:27-34 3240:19-26 3240:27-34 3241:20-27 3241:28-35 3242:19-26 3242:27-34 3247:20-37 3250:16-24 3252:12-20 3254:12-19 3256:18-28 3256:29-36 3262:17-27 3262:28-35 3268:12-20 3269:18-28 3269:29-36 3273:12-19 3274:16-24 3276:17-27 3276:28-35 3281:15-32 3281:33-41 3284:13-21 3285:16-23 3289:18-28 3289:29-37 3291:13-21 3292:16-23 3297:15-23 3298:11-19 3299:13-21 3300:13-20 3300:21-28 3303:15-23 3304:11-19 3305:14-22 3306:9-17 3307:11-19 3308:9-17 3309:14-22 3310:13-21 3311:13-21 3312:16-24 3313:27-35 3314:16-24 3315:20-28 3316:17-25 3317:14-21 3318:16-26 3318:27-34 3321:16-24 3322:12-19 3324:10-17 3326:15-22 3328:13-20 3331:17-25 3332:14-22 3334:8-15 3336:8-15 3339:20-28 3340:8-16 3342:11-18 3344:9-16 3346:15-22 3349:15-23 3350:11-19 3352:11-19 3354:13-21 3356:19-26 3358:15-22 3358:23-31 3360:14-21 3363:15-23 3364:11-19 3366:10-17 3368:11-18 3370:11-18 3372:20-27 3374:21-28 3376:24-31 3378:14-21 3379:18-25 3381:17-24 3382:15-22 3384:16-26 3384:27-34 3385:20-27 3387:19-27 3390:20-28 3391:11-19 3393:11-18 3397:15-23 3398:15-26 3401:16-27 3401:28-35 3405:22-29 3406:25-33 3410:18-26 3411:13-21 3412:22-29 3414:15-23 3415:11-20 3416:13-21 3417:15-22 3463:2-9 3467:16-24 3497:31-39 3498:14-22 3499:12-20 3500:17-25 3501:19-27 3502:16-24 3504:32-40 3505:15-23 3506:16-24 3509:31-39 3510:15-23 3511:16-24 3512:16-25 3512:26-34 3512:40-47 3518:25-33 3519:11-19 3522:13-30 3522:31-39 3529:20-27 3535:20-27 3541:20-27 3546:18-26 3547:13-21 3548:18-25 3559:17-25 3563:14-22 3564:11-19 3566:18-26 3567:42-49 3567:50-58 3570:24-32 3571:14-22 3572:20-29 3572:30-38 3573:20-29 3573:30-38 3574:20-29 3574:30-38 3586:17-25 3589:29-37 3594:16-24 3595:16-23 3595:24-31 3595:33-41 3598:20-28 3603:11-19 3605:18-26 3606:42-49 3606:50-57 3609:25-33 3610:14-22 3611:20-29 3611:30-38 3612:20-29 3612:30-38 3613:20-29 3613:30-38 3618:23-40 3621:16-23 3621:24-31 3625:16-23 3625:24-31 3626:33-41 3630:19-27 3631:23-30 3631:31-39 3635:19-27 3636:23-30 3636:31-39 3637:33-41 3640:15-23 3641:11-20 3642:10-18 3643:19-27 3646:18-26 3647:11-19 3648:13-20 3653:22-30 3654:11-19 3655:13-21 3656:20-29 3656:30-38 3656:44-51 3659:20-30 3659:31-38 3660:18-25 3661:13-20 3666:15-23 3667:11-20 3668:20-28 3669:17-27 3669:28-36 3670:17-27 3670:28-36 3671:20-27 3673:15-23 3674:15-23 3675:12-21 3676:16-25 3677:12-21 3678:9-17 3679:10-18 3684:19-27 3685:10-18 3689:9-17 3690:13-20 3690:21-30 3693:24-34 3693:35-43 3697:15-23 3698:11-20 3699:16-24 3700:18-26 3701:13-21 3702:12-20 3703:17-25 3704:16-24 3705:12-19 3706:16-23 3708:20-27 3723:15-23 3724:11-19 3725:16-26 3725:27-35 3726:13-21 3727:20-28 3728:20-29 3728:30-38 3728:44-51 3728:56-63 3729:14-22 3730:9-17 3731:16-24 3732:15-22 3732:27-36 3739:21-29 3740:10-18 3741:12-20 3742:19-27 3745:27-35 3746:13-21 3747:19-28 3748:21-30 3749:18-27 3750:20-29 3751:13-21 3752:15-23 3754:28-35 3754:54-62 3755:21-38 3758:16-25 3759:16-25 3760:11-19 3761:16-23 3761:24-32 3761:34-42 3765:14-22 3769:20-29 3770:14-22 3771:16-24 3777:19-27 3778:18-27 3779:20-29 3780:18-27 3784:11-19 3785:11-19 3788:17-25 3789:15-23 3790:14-22 3791:16-24 3793:15-25 3793:26-33 3797:33-40 3797:49-57 3798:32-40 3799:35-44 3799:45-53 3801:29-37 3802:18-27 3802:28-36 3805:13-21 3806:29-38 3806:39-47 3809:42-51 3809:52-60 3814:15-23 3815:11-19 3816:10-18 3817:18-27 3817:28-36 3818:16-25 3818:26-34 3821:10-18 3824:13-21 3825:16-24 3828:22-30 3829:21-29 3831:28-36 3832:32-41 3832:42-50 3834:23-40 3842:27-36 3842:37-45 3847:25-34 3847:35-43 3847:64-72 3848:20-29 3848:30-38 3848:59-67 3849:22-31 3849:32-40 3849:61-69 3858:26-35 3858:36-44 3858:65-73 3861:19-27 3862:10-18 3863:12-20 3864:8-15 3865:19-27 3867:15-25 3867:26-33 3871:23-31 3872:15-23 3873:18-26 3874:15-23 3875:16-24 3877:20-28 3878:16-24 3879:15-23 3880:19-27 3881:14-22 3882:16-23 3883:17-24 3885:15-23 3886:11-19 3887:14-24 3887:25-33 3888:11-19 3889:14-21 3891:24-32 3892:8-15 3893:7-14 3894:9-16 3895:10-17 3897:15-23 3898:11-20 3899:10-18 3999:21-29 4000:11-19 4001:12-20 4002:14-23 4002:24-32 4005:10-18 4007:20-28 4008:11-19 4009:13-21 4010:15-23 4011:17-25 4012:14-22 4013:14-21 4037:20-33 11792:21-29 11793:20-27 11795:8-15 11796:8-15 11797:8-15 11798:8-15 11927:31-38 11927:39-47 11928:29-36 11928:37-44 11928:46-54 12877:20-28 12878:11-19 12879:11-19 12880:12-20 12881:12-20 13630:16-30 13667:15-23 13668:20-27 13670:8-15 13671:8-15 13672:8-15 13673:8-15 13674:24-31 13674:32-40 13675:20-27 13675:28-35 13675:37-45 13676:13-20 13676:21-28 13677:15-22 13678:15-22 13778:21-35 14590:21-35 14918:29-37 14919:11-19 14920:14-23 14920:24-32 14923:14-22 14924:10-18 14925:16-24 14927:24-32 14928:11-19 14930:10-18 14931:10-18 14932:13-21 14933:16-26 14933:27-35 14934:17-25 14935:16-24 14936:16-24 14937:14-22 14938:14-22 14939:18-26 14940:14-22 14941:14-22 14942:14-21 14986:19-33 15042:20-37 15042:38-46 15044:14-22 15045:17-24 15045:25-33 15048:14-22 15049:17-24 15049:25-33 15050:13-21 15051:16-24 15052:16-24 15076:23-37 15095:25-39 15151:20-28 15151:29-36 15152:4-12 15153:7-15 15154:11-19 15156:14-22 15157:6-14 15158:14-21 15159:8-15 15160:14-22 15161:10-18 15163:15-23 15164:12-20 15165:16-24 15166:15-24 15166:25-33 15166:39-46 15172:19-27 15173:10-18 15174:13-20 15178:19-27 15179:16-26 15179:27-34 15180:16-25 15180:26-34 15181:22-31 15181:32-40 15183:22-30 15184:14-22 15185:11-20 15185:21-29 15186:14-22 15187:13-21 15192:21-35 15245:23-37 15264:25-39
@ ./node_modules/@react-pdf/font/lib/index.browser.js 19:14-43
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 9:0-40 164:20-29
@ ./src/App.js 4:0-59 12:37-45 13:39-43 15:41-45
@ ./src/index.js 7:0-24 11:33-36
ERROR in ./node_modules/restructure/src/LazyArray.js 28:12-35
Module not found: Error: Can't resolve 'util' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/restructure/src'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "util": require.resolve("util/") }'
- install 'util'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "util": false }
@ ./node_modules/restructure/index.js 8:2-48
@ ./node_modules/@react-pdf/fontkit/lib/fontkit.browser.es.js 1:0-28 38:32-46 109:20-28 110:13-21 111:14-22 112:11-18 113:17-25 115:20-28 116:17-25 117:15-23 118:11-19 120:28-36 121:21-29 122:19-26 124:21-29 125:16-24 126:11-19 128:21-28 128:48-56 129:24-31 129:44-52 130:28-36 131:15-23 132:18-27 132:28-36 135:21-30 135:31-39 139:23-40 139:41-49 142:12-20 144:14-22 146:17-28 146:29-36 150:12-20 151:14-22 152:23-30 152:31-39 156:20-31 157:25-36 157:37-45 161:12-20 163:14-22 165:16-24 169:17-25 170:19-27 171:16-24 172:17-28 172:29-37 173:21-31 173:32-40 175:19-30 175:31-39 176:17-28 176:29-36 177:23-34 177:35-43 178:25-36 178:37-45 184:12-20 185:14-22 186:15-23 187:16-24 188:22-33 188:34-42 192:18-28 192:29-37 193:12-20 194:14-22 195:14-25 195:26-33 196:13-21 197:16-27 201:18-28 201:29-37 202:12-20 203:14-22 204:15-23 205:16-24 206:22-33 206:34-42 210:18-28 210:29-37 211:12-20 212:14-22 213:13-21 214:16-27 218:18-28 218:29-37 219:12-20 220:14-22 221:13-21 222:16-27 226:12-20 227:16-24 228:22-33 231:20-28 232:14-22 234:14-22 236:13-22 236:23-31 242:15-23 243:11-19 244:16-24 245:14-21 247:15-23 248:11-18 250:12-19 252:22-30 253:15-23 255:9-17 256:14-22 258:15-22 258:23-30 259:16-23 259:24-31 260:8-15 262:8-15 264:8-15 266:8-15 268:16-26 268:27-35 269:17-25 271:21-28 272:20-27 274:19-26 277:15-23 278:11-18 279:10-17 281:11-18 283:11-18 285:19-27 287:22-29 289:23-30 291:14-21 292:18-25 294:17-24 296:15-22 298:16-26 298:27-34 299:20-27 301:19-27 304:20-28 305:11-19 306:11-18 308:15-23 309:15-26 312:16-27 312:28-35 316:15-23 317:11-18 318:13-21 320:13-21 322:15-23 324:22-30 326:24-32 328:12-20 330:21-29 332:14-22 334:19-27 336:22-30 338:20-28 340:25-33 342:24-32 344:21-29 787:21-29 788:14-22 789:14-22 790:14-22 791:10-18 792:10-18 793:14-23 793:24-32 793:38-46 801:24-32 802:10-18 803:11-20 803:21-29 803:35-43 808:20-37 808:38-46 810:11-19 811:18-26 812:17-24 815:11-19 816:18-26 817:17-24 818:18-26 819:18-25 897:14-31 897:32-40 899:19-26 901:19-27 903:18-26 905:16-26 905:27-35 907:21-28 909:21-28 911:23-30 913:23-30 915:23-30 917:23-30 919:25-32 921:25-32 923:20-27 925:24-31 927:18-25 929:16-23 929:24-31 931:21-28 931:29-37 932:18-26 934:21-31 934:32-40 936:22-30 938:21-29 944:18-25 945:19-26 946:17-24 947:15-23 948:16-24 949:23-30 949:31-39 953:18-25 954:19-26 955:17-24 956:15-23 957:16-24 958:23-30 958:31-39 959:13-20 960:15-22 961:17-25 962:15-23 963:16-24 966:18-25 967:19-26 968:17-24 969:15-23 970:16-24 971:23-30 971:31-39 972:13-20 973:15-22 974:17-25 975:15-23 976:16-24 977:29-37 978:29-37 983:15-32 983:33-42 986:17-26 988:23-30 990:24-31 992:18-26 994:18-26 996:18-26 998:17-25 1000:17-25 1006:20-28 1007:24-31 1007:32-40 1008:15-22 1008:27-35 1008:36-43 1011:20-28 1012:17-24 1012:25-32 1017:13-20 1017:21-29 1022:14-22 1023:21-28 1023:29-36 1027:15-23 1028:20-27 1028:28-35 1030:15-32 1032:17-24 1032:25-33 1035:17-24 1035:25-33 1055:15-23 1056:27-34 1056:35-42 1058:15-22 1058:27-35 1131:19-26 1133:19-27 1135:19-27 1137:19-27 1176:32-40 1188:19-26 1190:19-27 1192:19-27 1194:19-27 1211:32-40 1226:19-26 1228:19-27 1230:19-27 1232:19-27 1689:2-11 1735:23-31 1736:16-26 1736:27-35 1737:19-27 1738:16-24 1739:22-29 1739:30-38 1741:24-32 1742:11-19 1743:15-24 1743:25-33 1747:17-25 1748:22-31 1748:32-40 1749:9-17 1750:22-29 1752:23-31 1753:11-19 1754:14-23 1754:24-32 1758:21-28 1758:43-51 1762:18-26 1763:17-25 1765:15-23 1766:25-32 1766:33-41 1768:24-32 1769:11-19 1770:15-24 1770:25-33 1774:22-29 1774:45-53 1775:22-30 1776:22-29 1777:13-23 1777:24-31 1781:19-27 1782:16-24 1784:19-27 1785:19-26 1785:31-40 1785:41-49 1786:26-36 1786:37-45 1790:13-24 1790:29-38 1790:39-47 1790:58-66 1796:22-30 1797:9-17 1798:7-15 1799:22-30 1801:19-36 1801:37-45 1803:16-24 1804:16-23 1804:24-32 1807:16-24 1808:22-29 1814:27-35 1815:9-17 1816:7-15 1817:9-17 1819:19-36 1819:37-45 1822:16-24 1823:16-24 1824:25-32 1824:33-41 1828:21-29 1829:26-33 1835:17-25 1836:5-13 1838:5-13 1840:15-23 1845:23-31 1846:17-25 1847:19-27 1849:15-23 1850:14-22 1851:15-23 1852:13-20 1852:21-29 1855:21-28 1857:18-25 1857:30-39 1857:40-48 1857:57-65 1858:20-28 1859:14-22 1860:15-23 1861:15-22 1861:23-31 1864:21-28 1866:19-26 1866:31-40 1866:41-49 1866:63-71 1867:18-35 1867:36-44 1870:18-27 1870:28-36 1871:18-26 1872:18-25 1872:30-39 1872:40-48 1876:18-27 1876:28-36 1877:18-27 1877:28-36 1878:17-25 1879:18-25 1879:30-39 1879:40-48 1882:16-24 1883:17-25 1884:19-26 1884:31-40 1884:41-49 1885:23-30 1891:20-28 1892:23-31 1893:17-24 1893:25-33 1894:19-27 1895:13-20 1895:21-29 1898:23-31 1899:17-24 1899:25-33 1900:15-23 1901:21-28 1903:23-30 1903:35-44 1903:45-53 1903:67-75 1904:26-43 1904:44-52 1907:18-27 1907:28-36 1908:16-24 1909:23-30 1909:35-44 1909:45-53 1913:18-27 1913:28-36 1914:27-36 1914:37-45 1915:23-32 1915:33-41 1916:27-36 1916:37-45 1917:16-24 1918:23-30 1918:35-44 1918:45-53 1922:25-33 1923:27-34 1923:39-48 1923:49-57 1924:21-29 1925:23-30 1925:35-44 1925:45-53 1926:25-33 1927:27-34 1927:39-48 1927:49-57 1928:17-25 1929:23-30 1939:18-25 1940:32-40 1945:30-38 1946:13-21 1947:15-23 1948:24-31 1948:36-43 1950:19-27 1951:19-26 1951:27-34 1954:20-27 1954:28-34 1961:28-36 1962:13-21 1963:19-27 1964:20-28 1965:21-28 1965:29-37 1966:17-24 1968:29-37 1969:10-18 1970:27-36 1970:37-45 1971:22-30 1972:25-32 1972:37-46 1972:47-55 1978:25-42 1978:43-51 1980:15-23 1981:22-30 1983:23-31 1984:18-26 1985:22-29 1985:34-43 1985:44-52 1987:41-49 1988:16-24 1989:29-38 1989:39-47 1993:35-43 1994:11-20 1995:21-29 1996:21-28 1998:33-41 1999:20-29 1999:30-38 2002:32-41 2002:42-50 2006:28-36 2007:16-24 2008:16-24 2009:31-39 2010:31-38 2056:11-25 2060:2-10 2062:17-25 2063:9-17 2064:9-16 2066:17-25 2067:9-17 2068:9-17 2070:28-45 2072:12-19 2073:15-22 2073:23-30 2076:13-20 2077:16-23 2111:2-9 2113:27-44 2113:45-52 2115:16-23 2115:24-32 2133:19-27 2134:9-17 2135:6-13 2137:19-27 2138:9-17 2139:6-14 2141:19-36 2141:37-44 2143:13-20 2143:21-28 2148:13-21 2149:16-23 2150:14-22 2153:13-21 2154:16-23 2155:14-22 2186:25-33 2187:10-18 2191:17-34 2191:35-44 2193:13-20 2194:13-20 2195:32-40 2197:34-42 2201:13-20 2202:12-20 2375:25-33 2376:14-22 2377:15-22 2379:15-23 2380:16-24 2381:16-24 2382:22-29 2383:25-33 2384:15-22 2386:21-29 2387:10-17 2388:9-16 2389:16-22 2390:16-22 2391:15-22 2392:16-22 2393:16-22 2394:15-22 2396:23-31 2397:10-17 2398:9-16 2399:12-18 2400:12-18 2401:11-18 2403:24-32 2404:9-17 2405:11-17 2406:11-17 2413:4-21 2437:13-23 2437:24-31 2438:19-27 2439:20-27 2443:13-23 2443:24-31 2444:19-27 2445:20-27 2449:13-21 2450:14-22 2454:13-21 2455:14-22 2458:13-21 2459:14-22 2462:26-34 2463:12-18 2464:13-19 2465:12-19 2466:23-29 2467:25-31 2468:15-21 2469:15-21 2470:16-22 2471:15-21 2472:14-20 2473:11-21 2473:22-28 2475:25-33 2476:13-21 2477:10-18 2479:24-41 2479:42-50 2481:17-25 2482:21-29 2485:21-28 2485:29-37 2490:15-23 2494:21-28 2494:29-37 2499:15-23 2500:20-27 2505:15-23 2507:15-23 2508:24-31 2508:32-40 2511:29-37 2512:19-27 2513:18-26 2514:16-25 2514:26-34 2516:26-34 2517:26-35 2517:36-44 2517:50-57 2520:19-27 2521:26-34 2522:12-20 2525:19-27 2526:17-25 2527:9-16 2528:9-16 2529:12-19 2530:13-23 2530:24-31 2532:15-23 2533:11-19 2535:12-20 2536:13-20 2538:21-29 2539:8-16 2540:14-22 2541:20-27 2541:32-41 2541:42-50 2548:15-23 2549:11-19 2550:13-23 2550:24-32 2551:16-24 2552:19-26 2552:31-40 2552:41-49 2554:22-30 2555:7-15 2557:16-24 2564:26-34 2565:7-15 2568:19-27 2571:13-21 2573:15-23 2574:11-19 2575:23-31 2576:23-32 2576:33-41 2576:47-54 2577:20-29 2577:30-38 2577:44-51 2580:19-27 2582:22-30 2583:8-15 2584:9-16 2585:7-14 2586:9-16 2588:15-32 2588:33-41 2590:23-31 2591:17-25 2592:21-29 2593:22-31 2593:32-40 2593:46-53 2594:28-35 2594:36-44 2598:32-41 2598:42-50 2598:56-63 2598:64-72 2599:33-42 2599:43-51 2599:57-64 2599:65-73 2600:38-47 2600:48-56 2600:62-69 2600:70-78 2603:20-37 2603:38-46 2606:16-23 2611:16-23 2613:20-28 2615:20-28 2620:16-23 2622:21-30 2622:31-39 2626:21-29 2627:16-24 2629:18-26 2630:18-25 2630:30-39 2630:40-48 2632:27-35 2633:11-19 2635:16-25 2635:26-34 2639:16-25 2639:26-34 2644:17-25 2645:16-25 2645:26-34 2647:16-25 2647:26-34 2649:19-27 2651:25-32 2654:28-36 2655:11-19 2657:14-23 2657:24-32 2661:21-29 2662:18-27 2662:28-36 2664:21-30 2664:31-39 2666:20-28 2668:26-33 2671:27-35 2672:11-19 2674:14-23 2674:24-32 2678:25-32 2678:51-59 2680:22-29 2680:34-42 2680:47-55 2681:17-25 2682:19-28 2682:29-37 2684:22-31 2684:32-40 2686:15-32 2686:33-41 2688:19-28 2688:29-37 2690:18-27 2690:28-36 2695:28-37 2695:38-46 2698:22-29 2698:30-38 2698:40-48 2699:21-29 2700:16-25 2700:26-34 2701:14-22 2702:20-27 2702:32-41 2702:42-50 2704:21-38 2704:39-47 2707:16-23 2711:21-29 2715:16-23 2716:21-30 2716:31-39 2719:19-26 2719:31-40 2719:41-49 2719:64-72 2720:23-31 2721:16-25 2721:26-34 2722:17-25 2723:17-24 2723:29-38 2723:39-47 2725:27-35 2726:22-30 2727:16-24 2728:16-23 2728:28-37 2728:38-46 2730:15-32 2730:33-41 2732:23-32 2732:33-41 2733:20-29 2733:30-38 2734:22-31 2734:32-40 2735:28-37 2735:38-46 2739:26-35 2739:36-44 2742:26-35 2742:36-44 2743:28-37 2743:38-46 2746:22-32 2746:33-41 2748:14-21 2749:14-21 2750:12-19 2751:12-19 2752:18-27 2752:28-36 2756:18-27 2756:28-36 2760:18-27 2760:28-36 2764:18-27 2764:28-36 2803:15-23 2819:26-34 2820:15-23 2824:18-25 2824:43-51 2825:23-31 2829:17-34 2829:35-43 2832:17-24 2833:17-24 2837:17-24 2838:17-24 2839:17-25 2843:17-24 2844:17-24 2845:22-31 2845:32-40 2846:22-31 2846:32-40 2849:26-34 2850:19-28 2850:29-37 2853:18-27 2853:28-36 2857:21-29 2858:9-17 2859:18-27 2859:28-36 2863:20-27 2863:40-48 2864:21-28 2864:33-42 2864:43-51 2867:20-27 2867:40-48 2868:26-33 2868:38-47 2868:48-56 2871:25-32 2871:50-58 2872:24-31 2872:36-45 2872:46-54 2872:73-81 2873:21-38 2874:9-26 2874:27-35 2878:20-29 2878:30-38 2883:20-29 2883:30-38 2885:18-26 2886:18-29 2889:9-26 2889:27-35 2893:20-29 2893:30-38 2896:20-28 2897:20-31 2897:36-45 2897:46-54 2901:20-29 2901:30-38 2904:21-30 2904:31-39 2905:21-30 2905:31-39 2906:19-27 2907:19-27 2908:24-35 2908:40-51 2913:12-20 2914:18-27 2914:28-36 2915:20-28 2916:26-33 2920:12-20 2921:22-31 2921:32-40 2922:22-31 2922:32-40 2923:16-24 2924:19-28 2924:29-37 2925:19-28 2925:29-37 2929:12-20 2930:22-31 2930:32-40 2931:26-35 2931:36-44 2932:16-24 2933:19-28 2933:29-37 2934:23-32 2934:33-41 2938:12-20 2939:23-32 2939:33-41 2940:23-32 2940:33-41 2941:16-24 2942:20-29 2942:30-38 2943:20-29 2943:30-38 2951:15-23 2952:16-24 2954:19-28 2954:29-37 2959:15-32 2959:33-41 2961:20-29 2961:30-38 2962:21-30 2962:31-39 2963:20-29 2963:30-38 2967:27-36 2967:37-45 2971:19-26 2971:27-35 2971:37-45 2973:19-27 2974:9-17 2975:13-21 2976:18-25 2976:26-34 2980:22-29 2980:34-43 2980:44-52 2980:65-73 2981:21-38 2982:9-26 2982:27-35 2985:20-29 2985:30-38 2986:20-27 2989:20-29 2989:30-38 2990:18-26 2991:22-33 2991:34-42 2996:17-25 2997:18-27 2997:28-36 2998:11-19 2999:19-30 2999:35-44 2999:45-53 3003:17-25 3004:18-27 3004:28-36 3005:11-19 3006:22-33 3006:38-47 3006:48-56 3010:17-25 3011:18-27 3011:28-36 3012:11-19 3013:22-33 3013:38-47 3013:48-56 3021:17-25 3022:16-24 3024:19-28 3024:29-37 3028:17-25 3029:18-27 3029:28-36 3030:27-34 3030:39-48 3030:49-57 3031:25-33 3032:27-34 3032:39-48 3032:49-57 3033:16-24 3034:21-28 3034:29-37 3039:15-32 3039:33-41 3041:20-29 3041:30-38 3042:21-30 3042:31-39 3043:20-29 3043:30-38 3047:27-36 3047:37-45 3050:26-33 3050:34-42 3050:44-52 3051:23-31 3052:27-36 3052:37-45 3053:28-37 3053:38-46 3054:27-36 3054:37-45 3055:28-37 3055:38-46 3056:24-33 3056:34-42 3057:27-36 3057:37-45 3058:28-37 3058:38-46 3059:27-36 3059:37-45 3060:28-37 3060:38-46 3061:24-33 3061:34-42 3063:22-29 3063:34-43 3063:44-52 3063:69-77 3064:28-36 3065:11-19 3066:19-28 3066:29-37 3068:21-29 3069:22-31 3069:32-40 3069:46-53 3069:54-62 3069:64-72 3071:22-31 3071:32-40 3072:16-24 3073:22-29 3075:27-35 3076:11-19 3077:14-23 3077:24-32 3081:15-23 3082:11-19 3084:15-23 3085:18-25 3118:23-31 3129:27-35 3130:15-23 3131:12-20 3132:15-22 3134:15-23 3135:16-24 3136:16-24 3137:26-35 3137:36-44 3138:27-36 3138:37-45 3139:18-27 3139:28-36 3140:18-27 3140:28-36 3142:20-28 3143:10-18 3144:10-18 3145:10-18 3147:25-33 3148:16-26 3148:27-35 3149:15-23 3151:17-25 3153:15-23 3154:13-21 3156:13-21 3158:10-18 3160:18-25 3161:23-30 3163:20-28 3164:16-24 3166:25-35 3166:36-44 3170:15-23 3171:11-19 3173:13-21 3174:18-25 3177:23-31 3178:13-20 3179:16-23 3180:14-21 3180:22-29 3185:15-23 3186:11-19 3187:14-21 3188:20-27 3189:15-22 3191:19-27 3192:8-16 3193:9-17 3194:9-16 3196:23-31 3197:14-22 3198:11-19 3199:15-22 3199:23-31 3204:21-29 3211:14-25 3211:26-33 3213:23-40 3215:12-20 3216:17-25 3217:19-27 3218:16-24 3219:15-22 3222:14-22 3223:19-28 3223:29-37 3226:20-29 3226:30-38 3229:15-24 3229:25-33 3234:16-24 3235:20-27 3236:20-27 3237:21-28 3238:11-18 3239:19-26 3239:27-34 3240:19-26 3240:27-34 3241:20-27 3241:28-35 3242:19-26 3242:27-34 3247:20-37 3250:16-24 3252:12-20 3254:12-19 3256:18-28 3256:29-36 3262:17-27 3262:28-35 3268:12-20 3269:18-28 3269:29-36 3273:12-19 3274:16-24 3276:17-27 3276:28-35 3281:15-32 3281:33-41 3284:13-21 3285:16-23 3289:18-28 3289:29-37 3291:13-21 3292:16-23 3297:15-23 3298:11-19 3299:13-21 3300:13-20 3300:21-28 3303:15-23 3304:11-19 3305:14-22 3306:9-17 3307:11-19 3308:9-17 3309:14-22 3310:13-21 3311:13-21 3312:16-24 3313:27-35 3314:16-24 3315:20-28 3316:17-25 3317:14-21 3318:16-26 3318:27-34 3321:16-24 3322:12-19 3324:10-17 3326:15-22 3328:13-20 3331:17-25 3332:14-22 3334:8-15 3336:8-15 3339:20-28 3340:8-16 3342:11-18 3344:9-16 3346:15-22 3349:15-23 3350:11-19 3352:11-19 3354:13-21 3356:19-26 3358:15-22 3358:23-31 3360:14-21 3363:15-23 3364:11-19 3366:10-17 3368:11-18 3370:11-18 3372:20-27 3374:21-28 3376:24-31 3378:14-21 3379:18-25 3381:17-24 3382:15-22 3384:16-26 3384:27-34 3385:20-27 3387:19-27 3390:20-28 3391:11-19 3393:11-18 3397:15-23 3398:15-26 3401:16-27 3401:28-35 3405:22-29 3406:25-33 3410:18-26 3411:13-21 3412:22-29 3414:15-23 3415:11-20 3416:13-21 3417:15-22 3463:2-9 3467:16-24 3497:31-39 3498:14-22 3499:12-20 3500:17-25 3501:19-27 3502:16-24 3504:32-40 3505:15-23 3506:16-24 3509:31-39 3510:15-23 3511:16-24 3512:16-25 3512:26-34 3512:40-47 3518:25-33 3519:11-19 3522:13-30 3522:31-39 3529:20-27 3535:20-27 3541:20-27 3546:18-26 3547:13-21 3548:18-25 3559:17-25 3563:14-22 3564:11-19 3566:18-26 3567:42-49 3567:50-58 3570:24-32 3571:14-22 3572:20-29 3572:30-38 3573:20-29 3573:30-38 3574:20-29 3574:30-38 3586:17-25 3589:29-37 3594:16-24 3595:16-23 3595:24-31 3595:33-41 3598:20-28 3603:11-19 3605:18-26 3606:42-49 3606:50-57 3609:25-33 3610:14-22 3611:20-29 3611:30-38 3612:20-29 3612:30-38 3613:20-29 3613:30-38 3618:23-40 3621:16-23 3621:24-31 3625:16-23 3625:24-31 3626:33-41 3630:19-27 3631:23-30 3631:31-39 3635:19-27 3636:23-30 3636:31-39 3637:33-41 3640:15-23 3641:11-20 3642:10-18 3643:19-27 3646:18-26 3647:11-19 3648:13-20 3653:22-30 3654:11-19 3655:13-21 3656:20-29 3656:30-38 3656:44-51 3659:20-30 3659:31-38 3660:18-25 3661:13-20 3666:15-23 3667:11-20 3668:20-28 3669:17-27 3669:28-36 3670:17-27 3670:28-36 3671:20-27 3673:15-23 3674:15-23 3675:12-21 3676:16-25 3677:12-21 3678:9-17 3679:10-18 3684:19-27 3685:10-18 3689:9-17 3690:13-20 3690:21-30 3693:24-34 3693:35-43 3697:15-23 3698:11-20 3699:16-24 3700:18-26 3701:13-21 3702:12-20 3703:17-25 3704:16-24 3705:12-19 3706:16-23 3708:20-27 3723:15-23 3724:11-19 3725:16-26 3725:27-35 3726:13-21 3727:20-28 3728:20-29 3728:30-38 3728:44-51 3728:56-63 3729:14-22 3730:9-17 3731:16-24 3732:15-22 3732:27-36 3739:21-29 3740:10-18 3741:12-20 3742:19-27 3745:27-35 3746:13-21 3747:19-28 3748:21-30 3749:18-27 3750:20-29 3751:13-21 3752:15-23 3754:28-35 3754:54-62 3755:21-38 3758:16-25 3759:16-25 3760:11-19 3761:16-23 3761:24-32 3761:34-42 3765:14-22 3769:20-29 3770:14-22 3771:16-24 3777:19-27 3778:18-27 3779:20-29 3780:18-27 3784:11-19 3785:11-19 3788:17-25 3789:15-23 3790:14-22 3791:16-24 3793:15-25 3793:26-33 3797:33-40 3797:49-57 3798:32-40 3799:35-44 3799:45-53 3801:29-37 3802:18-27 3802:28-36 3805:13-21 3806:29-38 3806:39-47 3809:42-51 3809:52-60 3814:15-23 3815:11-19 3816:10-18 3817:18-27 3817:28-36 3818:16-25 3818:26-34 3821:10-18 3824:13-21 3825:16-24 3828:22-30 3829:21-29 3831:28-36 3832:32-41 3832:42-50 3834:23-40 3842:27-36 3842:37-45 3847:25-34 3847:35-43 3847:64-72 3848:20-29 3848:30-38 3848:59-67 3849:22-31 3849:32-40 3849:61-69 3858:26-35 3858:36-44 3858:65-73 3861:19-27 3862:10-18 3863:12-20 3864:8-15 3865:19-27 3867:15-25 3867:26-33 3871:23-31 3872:15-23 3873:18-26 3874:15-23 3875:16-24 3877:20-28 3878:16-24 3879:15-23 3880:19-27 3881:14-22 3882:16-23 3883:17-24 3885:15-23 3886:11-19 3887:14-24 3887:25-33 3888:11-19 3889:14-21 3891:24-32 3892:8-15 3893:7-14 3894:9-16 3895:10-17 3897:15-23 3898:11-20 3899:10-18 3999:21-29 4000:11-19 4001:12-20 4002:14-23 4002:24-32 4005:10-18 4007:20-28 4008:11-19 4009:13-21 4010:15-23 4011:17-25 4012:14-22 4013:14-21 4037:20-33 11792:21-29 11793:20-27 11795:8-15 11796:8-15 11797:8-15 11798:8-15 11927:31-38 11927:39-47 11928:29-36 11928:37-44 11928:46-54 12877:20-28 12878:11-19 12879:11-19 12880:12-20 12881:12-20 13630:16-30 13667:15-23 13668:20-27 13670:8-15 13671:8-15 13672:8-15 13673:8-15 13674:24-31 13674:32-40 13675:20-27 13675:28-35 13675:37-45 13676:13-20 13676:21-28 13677:15-22 13678:15-22 13778:21-35 14590:21-35 14918:29-37 14919:11-19 14920:14-23 14920:24-32 14923:14-22 14924:10-18 14925:16-24 14927:24-32 14928:11-19 14930:10-18 14931:10-18 14932:13-21 14933:16-26 14933:27-35 14934:17-25 14935:16-24 14936:16-24 14937:14-22 14938:14-22 14939:18-26 14940:14-22 14941:14-22 14942:14-21 14986:19-33 15042:20-37 15042:38-46 15044:14-22 15045:17-24 15045:25-33 15048:14-22 15049:17-24 15049:25-33 15050:13-21 15051:16-24 15052:16-24 15076:23-37 15095:25-39 15151:20-28 15151:29-36 15152:4-12 15153:7-15 15154:11-19 15156:14-22 15157:6-14 15158:14-21 15159:8-15 15160:14-22 15161:10-18 15163:15-23 15164:12-20 15165:16-24 15166:15-24 15166:25-33 15166:39-46 15172:19-27 15173:10-18 15174:13-20 15178:19-27 15179:16-26 15179:27-34 15180:16-25 15180:26-34 15181:22-31 15181:32-40 15183:22-30 15184:14-22 15185:11-20 15185:21-29 15186:14-22 15187:13-21 15192:21-35 15245:23-37 15264:25-39
@ ./node_modules/@react-pdf/font/lib/index.browser.js 19:14-43
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 9:0-40 164:20-29
@ ./src/App.js 4:0-59 12:37-45 13:39-43 15:41-45
@ ./src/index.js 7:0-24 11:33-36
ERROR in ./node_modules/safe-buffer/index.js 4:13-30
Module not found: Error: Can't resolve 'buffer' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/safe-buffer'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
- install 'buffer'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "buffer": false }
@ ./node_modules/string_decoder/lib/string_decoder.js 24:13-42
@ ./node_modules/iconv-lite/encodings/internal.js 54:20-59
@ ./node_modules/iconv-lite/encodings/index.js 4:15-36
@ ./node_modules/iconv-lite/lib/index.js 57:42-65
@ ./node_modules/@react-pdf/fontkit/lib/fontkit.browser.es.js 4130:14-35
@ ./node_modules/@react-pdf/font/lib/index.browser.js 19:14-43
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 9:0-40 164:20-29
@ ./src/App.js 4:0-59 12:37-45 13:39-43 15:41-45
@ ./src/index.js 7:0-24 11:33-36
ERROR in ./node_modules/safer-buffer/safer.js 4:13-30
Module not found: Error: Can't resolve 'buffer' in '/Users/Lukak/Desktop/Projects/CityX/Frontend/cityx-cms_v3/node_modules/safer-buffer'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }'
- install 'buffer'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "buffer": false }
@ ./node_modules/iconv-lite/lib/index.js 4:13-43
@ ./node_modules/@react-pdf/fontkit/lib/fontkit.browser.es.js 4130:14-35
@ ./node_modules/@react-pdf/font/lib/index.browser.js 19:14-43
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 9:0-40 164:20-29
@ ./src/App.js 4:0-59 12:37-45 13:39-43 15:41-45
@ ./src/index.js 7:0-24 11:33-36
9 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack 5.65.0 compiled with 9 errors in 2470 ms
Some errors can be resolved by simply installing the package.
As follows:
npm install stream --save
npm install util --save
However the package zlib is what I'm getting stuck on. It's not picking it up when I've installed it. There is a possible fix proposed as mentioned here facebook/create-react-app#11756 (comment) that is a current workaround.
It's pretty messy though... Let's hope they come up with a better solution
webpack 5 doesn't polyfill node.js core modules by default, you need to setup them manually, here is how to for create-react-app
https://dev.to/przpiw/react-pdf-rendering-4g7b
pakoito, juanibiapina, sebastian-uriel-flores, Nedyc, Binomi0, danok21, zonaidev, Facelessdivine, itsdenispavlovic, josegallegos07, and 22 more reacted with thumbs down emoji
zjukd00m reacted with confused emoji
All reactions
Module not found: Error: Can't resolve 'zlib' in '/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/pdfkit/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
- install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "zlib": false }
assets by path static/ 8.9 MiB
asset static/js/bundle.js 8.78 MiB [emitted] (name: main) 1 related asset
asset static/media/code.f50025f740a4df3d1b76.png 53.9 KiB [emitted] [immutable] [from: src/components/modal/assets/code.png] (auxiliary name: main)
asset static/media/RM.82c3122b2abe4ed2b459.png 13.8 KiB [emitted] [immutable] [from: src/assets/modality/RM.png] (auxiliary name: main)
asset static/media/CT.0b3260c58e4ecad49674.png 11.5 KiB [emitted] [immutable] [from: src/assets/modality/CT.png] (auxiliary name: main)
asset static/media/MG.589b93d0690a2d39e1af.png 11.1 KiB [emitted] [immutable] [from: src/assets/modality/MG.png] (auxiliary name: main)
asset static/media/DEF.34f07048b71962509392.png 10.8 KiB [emitted] [immutable] [from: src/assets/modality/DEF.png] (auxiliary name: main)
asset static/media/logo.34f07048b71962509392.png 10.8 KiB [emitted] [immutable] [from: src/assets/logo.png] (auxiliary name: main)
asset static/media/US.e9e6bf530b0ad10c1253.png 10.3 KiB [emitted] [immutable] [from: src/assets/modality/US.png] (auxiliary name: main)
asset index.html 2.16 KiB [emitted]
asset asset-manifest.json 704 bytes [emitted]
runtime modules 29.6 KiB 15 modules
modules by path ./node_modules/ 7.09 MiB
javascript modules 7 MiB 1165 modules
json modules 86.7 KiB
./node_modules/iconv-lite/encodings/tables/shiftjis.json 8.78 KiB [built] [code generated]
+ 7 modules
modules by path ./src/ 227 KiB (javascript) 122 KiB (asset)
javascript modules 204 KiB 58 modules
asset modules 23.1 KiB (javascript) 122 KiB (asset)
modules by path ./src/assets/modality/*.png 23 KiB (javascript) 57.5 KiB (asset) 7 modules
./src/assets/logo.png 42 bytes (javascript) 10.8 KiB (asset) [built] [code generated]
./src/components/modal/assets/code.png 42 bytes (javascript) 53.9 KiB (asset) [built] [code generated]
optional modules 30 bytes [optional]
stream (ignored) 15 bytes [optional] [built] [code generated]
crypto (ignored) 15 bytes [optional] [built] [code generated]
WARNING in src/components/FormExpediente.js
Line 4:10: 'Link' is defined but never used no-unused-vars
Line 20:9: 'sucess' is assigned a value but never used no-unused-vars
src/index.js
Line 3:27: 'Router' is defined but never used no-unused-vars
src/pages/InvitadoPage.js
Line 4:10: 'Formik' is defined but never used no-unused-vars
src/pages/LoginPage.js
Line 2:16: 'useLocation' is defined but never used no-unused-vars
ERROR in ./node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.es.js 4:0-24
Module not found: Error: Can't resolve 'zlib' in '/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/pdfkit/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
- install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "zlib": false }
resolve 'zlib' in '/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/pdfkit/lib'
Parsed request is a module
using description file: /Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/pdfkit/package.json (relative path: ./lib)
resolve as module
/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/pdfkit/lib/node_modules doesn't exist or is not a directory
/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/pdfkit/node_modules doesn't exist or is not a directory
/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/node_modules doesn't exist or is not a directory
/Users/israel/Developer/ciem/frontend/node_modules/node_modules doesn't exist or is not a directory
looking for modules in /Users/israel/Developer/ciem/frontend/node_modules
single file module
using description file: /Users/israel/Developer/ciem/frontend/package.json (relative path: ./node_modules/zlib)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib doesn't exist
.web.mjs
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.mjs doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.mjs doesn't exist
.web.js
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.js doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.json doesn't exist
.web.jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.jsx doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.jsx doesn't exist
/Users/israel/Developer/ciem/frontend/node_modules/zlib doesn't exist
/Users/israel/Developer/ciem/node_modules doesn't exist or is not a directory
/Users/israel/Developer/node_modules doesn't exist or is not a directory
/Users/israel/node_modules doesn't exist or is not a directory
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in /Users/israel/Developer/ciem/frontend/node_modules
single file module
using description file: /Users/israel/Developer/ciem/frontend/package.json (relative path: ./node_modules/zlib)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib doesn't exist
.web.mjs
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.mjs doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.mjs doesn't exist
.web.js
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.js doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.json doesn't exist
.web.jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.jsx doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.jsx doesn't exist
/Users/israel/Developer/ciem/frontend/node_modules/zlib doesn't exist
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 11:0-44 212:24-35
@ ./src/components/pdfcomponent/ExpedientePDF.js 4:0-48 12:30-39
@ ./src/components/ExpedienteDetails.js 15:0-61 147:49-62
@ ./src/App.js 15:0-67 96:42-59
@ ./src/index.js 7:0-24 10:33-36
ERROR in ./node_modules/@react-pdf/png-js/lib/png-js.browser.es.js 1:0-24
Module not found: Error: Can't resolve 'zlib' in '/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/png-js/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "zlib": require.resolve("browserify-zlib") }'
- install 'browserify-zlib'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "zlib": false }
resolve 'zlib' in '/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/png-js/lib'
Parsed request is a module
using description file: /Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/png-js/package.json (relative path: ./lib)
resolve as module
/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/png-js/lib/node_modules doesn't exist or is not a directory
/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/png-js/node_modules doesn't exist or is not a directory
/Users/israel/Developer/ciem/frontend/node_modules/@react-pdf/node_modules doesn't exist or is not a directory
/Users/israel/Developer/ciem/frontend/node_modules/node_modules doesn't exist or is not a directory
looking for modules in /Users/israel/Developer/ciem/frontend/node_modules
single file module
using description file: /Users/israel/Developer/ciem/frontend/package.json (relative path: ./node_modules/zlib)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib doesn't exist
.web.mjs
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.mjs doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.mjs doesn't exist
.web.js
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.js doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.json doesn't exist
.web.jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.jsx doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.jsx doesn't exist
/Users/israel/Developer/ciem/frontend/node_modules/zlib doesn't exist
/Users/israel/Developer/ciem/node_modules doesn't exist or is not a directory
/Users/israel/Developer/node_modules doesn't exist or is not a directory
/Users/israel/node_modules doesn't exist or is not a directory
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in /Users/israel/Developer/ciem/frontend/node_modules
single file module
using description file: /Users/israel/Developer/ciem/frontend/package.json (relative path: ./node_modules/zlib)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib doesn't exist
.web.mjs
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.mjs doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.mjs doesn't exist
.web.js
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.js doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.json doesn't exist
.web.jsx
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.web.jsx doesn't exist
Field 'browser' doesn't contain a valid alias configuration
/Users/israel/Developer/ciem/frontend/node_modules/zlib.jsx doesn't exist
/Users/israel/Developer/ciem/frontend/node_modules/zlib doesn't exist
@ ./node_modules/@react-pdf/pdfkit/lib/pdfkit.browser.es.js 7:0-36 20586:21-24
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.es.js 11:0-44 212:24-35
@ ./src/components/pdfcomponent/ExpedientePDF.js 4:0-48 12:30-39
@ ./src/components/ExpedienteDetails.js 15:0-61 147:49-62
@ ./src/App.js 15:0-67 96:42-59
@ ./src/index.js 7:0-24 10:33-36
With craco I solved it just by adding:
And have path-browserify installed as a dev dependency, or have it declared as a dev dependency, just in case =)
webpackConfig.resolve.fallback = {
...webpackConfig.resolve.fallback,
path: require.resolve('path-browserify'),