VanAndelInstitute / virtual-slide-viewer

Simplified digital pathology image viewer
MIT License
0 stars 0 forks source link

Data table: react-cookies not playing nicely with snowpack dev #22

Closed rmontroy closed 3 years ago

rmontroy commented 3 years ago
react-cookie.js:399 Uncaught ReferenceError: require is not defined
    at react-cookie.js:399
rmontroy commented 3 years ago

This will need to be fixed in the react-cookie package itself: https://github.com/reactivestack/cookies/blob/de3b2ce6d7c2a1897e2c643fadbf4271e6c92d31/packages/react-cookie/src/withCookies.tsx#L8

In the meantime, deleting the code for withCookies (it's not used) in node_modules/react_cookie/es6 after installing gets snowpack dev working again.