I'm trying to run the new Strapi version 4 application. But it returns this error. Is there any bug in new strapi v4? or I'm doing wrong anything? I'm using strapi official guide to start a new project
installation command npx create-strapi-app@latest molla-admin
.
NodeJS v16
Windows 11
ModuleNotFoundError: Module not found: Error: Can't resolve '@strapi/design-system/themes' in 'C:\Users\Admin\Desktop\molla-admin\.cache\admin\src'
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\Compilation.js:1765:28
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\NormalModuleFactory.js:730:13
at eval (eval at create (C:\Users\Admin\Desktop\molla-admin\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1)
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\NormalModuleFactory.js:273:22
at eval (eval at create (C:\Users\Admin\Desktop\molla-admin\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:9:1)
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\NormalModuleFactory.js:402:22
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\NormalModuleFactory.js:117:11
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\NormalModuleFactory.js:646:24
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\NormalModuleFactory.js:800:8
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\NormalModuleFactory.js:920:5
at C:\Users\Admin\Desktop\molla-admin\node_modules\neo-async\async.js:6883:13
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\NormalModuleFactory.js:903:45
at finishWithoutResolve (C:\Users\Admin\Desktop\molla-admin\node_modules\enhanced-resolve\lib\Resolver.js:296:11)
at C:\Users\Admin\Desktop\molla-admin\node_modules\enhanced-resolve\lib\Resolver.js:362:15
at C:\Users\Admin\Desktop\molla-admin\node_modules\enhanced-resolve\lib\Resolver.js:410:5
at eval (eval at create (C:\Users\Admin\Desktop\molla-admin\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
resolve '@strapi/design-system/themes' in 'C:\Users\Admin\Desktop\molla-admin\.cache\admin\src'
Parsed request is a module
using description file: C:\Users\Admin\Desktop\molla-admin\.cache\package.json (relative path: ./admin/src)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
C:\Users\Admin\Desktop\molla-admin\.cache\admin\src\node_modules doesn't exist or is not a directory
C:\Users\Admin\Desktop\molla-admin\.cache\admin\node_modules doesn't exist or is not a directory
C:\Users\Admin\Desktop\molla-admin\.cache\node_modules doesn't exist or is not a directory
looking for modules in C:\Users\Admin\Desktop\molla-admin\node_modules
C:\Users\Admin\Desktop\molla-admin\node_modules\@strapi\design-system doesn't exist
C:\Users\Admin\Desktop\node_modules doesn't exist or is not a directory
C:\Users\Admin\node_modules doesn't exist or is not a directory
C:\Users\node_modules doesn't exist or is not a directory
C:\node_modules doesn't exist or is not a directory
ModuleNotFoundError: Module not found: Error: Can't resolve '@strapi/design-system/themes' in 'C:\Users\Admin\Desktop\molla-admin\.cache\admin\src'
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\Compilation.js:1765:28
at C:\Users\Admin\Desktop\molla-admin\node_modules\webpack\lib\NormalModuleFactory.js:730:13
at eval (eval at create (C:\Users\Admin\Desktop\molla-admin\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:10:1)
at C:\Users\Admin\Desktop\molla-admin\node_modules\enhanced-resolve\lib\Resolver.js:410:5
at eval (eval at create (C:\Users\Admin\Desktop\molla-admin\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1)
resolve '@strapi/design-system/themes' in 'C:\Users\Admin\Desktop\molla-admin\.cache\admin\src'
Parsed request is a module
using description file: C:\Users\Admin\Desktop\molla-admin\.cache\package.json (relative path: ./admin/src)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
C:\Users\Admin\Desktop\molla-admin\.cache\admin\src\node_modules doesn't exist or is not a directory
C:\Users\Admin\Desktop\molla-admin\.cache\admin\node_modules doesn't exist or is not a directory
C:\Users\Admin\Desktop\molla-admin\.cache\node_modules doesn't exist or is not a directory
looking for modules in C:\Users\Admin\Desktop\molla-admin\node_modules
C:\Users\Admin\Desktop\molla-admin\node_modules\@strapi\design-system doesn't exist
C:\Users\Admin\Desktop\node_modules doesn't exist or is not a directory
C:\Users\Admin\node_modules doesn't exist or is not a directory
C:\Users\node_modules doesn't exist or is not a directory
C:\node_modules doesn't exist or is not a directory
CodePudding user response:
It's a known bug and they are working on a fix. You have to use yarn in the mean time.
CodePudding user response:
Could you try if is this problem resolved?