Closed ingowonner closed 1 year ago
I faced the same issue
Same 🤔
WARNING in ./node_modules/@strapi/plugin-content-type-builder/admin/src/components/AttributeOptions/EmptyAttributes/index.js 27:387-405
export 'EmptyStateDocument' (imported as 'EmptyStateDocument') was not found in '@strapi/icons'
WARNING in ./node_modules/@strapi/plugin-upload/admin/src/components/EmptyAssets/index.js 7:508-527
export 'EmptyStateDocuments' (imported as 'EmptyStateDocuments') was not found in '@strapi/icons'
WARNING in ./node_modules/@strapi/plugin-users-permissions/admin/src/pages/Roles/index.js 17:341-349
export 'NotFound' (imported as 'NotFound') was not found in '@strapi/helper-plugin'
WARNING in ./node_modules/strapi-plugin-import-export-entries/admin/src/pages/App/index.js 7:276-284
export 'NotFound' (imported as 'NotFound') was not found in '@strapi/helper-plugin'
There is actually an open PR which seems to fix this issue: https://github.com/strapi/strapi/pull/16252
For our project i created some patches which are working with patch-package. This solves the issue until there is a proper fix from strapi: https://gist.github.com/ingowonner/6b59af2aaa5d2df9fbaead8c4e95bb0e
@ingowonner thanks for the patch 🙌🏼
@markkaylor do you think you could cherry pick your commit from #16252 as a separate PR to solve this issue quicker? :)
@joshuaellis I'm still working on the issue right now but yes I could cherry pick the commit to a new PR.
This issue has been mentioned on Strapi Community Forum. There might be relevant details there:
https://forum.strapi.io/t/strapi-watch-admin-doesnt-wor-on-nodes-modules-update/27656/4
I'm also experiencing this or similar issue while running 4.10.5
with yarn PnP enabled.
After reporting a wall of errors, it prints
webpack 5.83.1 compiled with 516 errors in 887 ms
The errors seems to be the same, but for different peer dependency modules not being found. Here's an example:
ERROR in ./.yarn/__virtual__/@uiw-react-codemirror-virtual-170db3fe60/0/cache/@uiw-react-codemirror-npm-4.20.2-bac86c09c1-e0f448ab30.zip/node_modules/@uiw/react-codemirror/esm/getDefaultExtensions.js 3:0-67
Module not found: Error: @uiw/react-codemirror tried to access @codemirror/view (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
Required package: @codemirror/view
Required by: @uiw/react-codemirror@virtual:c93499b2a0d813975ac3aeacda90d3384bf48f89f08983e66fa58f14775e001b9170f0051654bccea43b55841108978d56594926d8605977cdad835ea024df3d#npm:4.20.2 (via /Users/[LOCAL PATH]/.yarn/__virtual__/@uiw-react-codemirror-virtual-170db3fe60/0/cache/@uiw-react-codemirror-npm-4.20.2-bac86c09c1-e0f448ab30.zip/node_modules/@uiw/react-codemirror/esm/)
Ancestor breaking the chain: @strapi/design-system@virtual:4b677b9b50849321bce688ab5d8e1399d4d43bb4e1331cf8d8b8232701556ebef284a21f85d407b4f0f40aad19c0648106f1165ccd11b9ab09583e3440fe7e3a#npm:1.7.5
@ ./.yarn/__virtual__/@uiw-react-codemirror-virtual-170db3fe60/0/cache/@uiw-react-codemirror-npm-4.20.2-bac86c09c1-e0f448ab30.zip/node_modules/@uiw/react-codemirror/esm/index.js 9:0-39 9:0-39
@ ./.yarn/__virtual__/@strapi-design-system-virtual-c93499b2a0/0/cache/@strapi-design-system-npm-1.7.5-27ff311d29-33f5029039.zip/node_modules/@strapi/design-system/dist/JSONInput/JSONInput.js 4:0-59 37:27-28
@ ./.yarn/__virtual__/@strapi-design-system-virtual-c93499b2a0/0/cache/@strapi-design-system-npm-1.7.5-27ff311d29-33f5029039.zip/node_modules/@strapi/design-system/dist/index.js 55:0-59 140:0-306:2
@ ./.cache/admin/src/StrapiApp.js 5:0-62 37:23-33 37:41-50
@ ./.cache/admin/src/index.js 45:26-48:3
1+
Bug report
If I try to start a fresh Strapi v4.9.0 project with
yarn develop --watch-admin
or justyarn strapi watch-admin
it throws errors for some exports which can't be found. The Strapi Admin UI is not reachable.Required System information
Describe the bug
The logs of the
yarn strapi watch-admin
command. It's basically the same foryarn develop --watch-admin
.Steps to reproduce the behavior
yarn create strapi-app my-project
Quickstart (recommended)
yarn develop --watch-admin
Expected behavior
Strapi should start without throwing errors.