You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a React project that is using webpack 4 and babel for transpiling to cjs and esm targets.
Since we upgraded our react-cookie and universal-cookies to v7 we cannot build our project.
ERROR Failed to compile with 1 errors 11:31:17
This dependency was not found:
* universal-cookie in ./node_modules/react-cookie/esm/index.mjs
To install it, you can run: npm install --save universal-cookie
× 「wdm」:
ERROR in ./node_modules/react-cookie/esm/index.mjs
Module not found: Error: Can't resolve 'universal-cookie' in 'C:\dev\website\node_modules\react-cookie\esm'
@ ./node_modules/react-cookie/esm/index.mjs 8:0-39 9:0-54 9:0-54 12:47-54 23:25-32
Tracing why this might be happening I noticed the "main" attribute in the universal-cookiepackage.json is missing
I added it back in into my local node_modules and now the project builds successfully
I can fork and PR to fix this if someone here is happy to review and release.
Many thanks
Neil
The text was updated successfully, but these errors were encountered:
I am working on a React project that is using webpack 4 and babel for transpiling to cjs and esm targets.
Since we upgraded our react-cookie and universal-cookies to v7 we cannot build our project.
Tracing why this might be happening I noticed the "main" attribute in the
universal-cookie
package.json
is missingI added it back in into my local node_modules and now the project builds successfully
I can fork and PR to fix this if someone here is happy to review and release.
Many thanks
Neil
The text was updated successfully, but these errors were encountered: