Skip to content

Can't run yarn develop with --watch-admin flag #16266

@ingowonner

Description

@ingowonner

Bug report

If I try to start a fresh Strapi v4.9.0 project with yarn develop --watch-admin or just yarn strapi watch-admin it throws errors for some exports which can't be found. The Strapi Admin UI is not reachable.

Required System information

  • Node.js version: v16.18.1
  • Yarn version: 1.22.19
  • Strapi version: 4.9.0
  • Database: sqlite
  • Operating system: macOS 13.2.1
  • Is your project Javascript or Typescript: Typescript

Describe the bug

The logs of the yarn strapi watch-admin command. It's basically the same for yarn develop --watch-admin.

yarn run v1.22.19
$ strapi watch-admin
Starting the compilation for TypeScript files in /Users/ingo/Downloads/teststrapi/my-project
Starting the development server...

Admin development at http://localhost:8000/admin/
assets by path *.js 37.8 MiB
  assets by chunk 14.3 MiB (id hint: vendors)
    asset vendors-node_modules_codemirror5_addon_display_placeholder_js-node_modules_highlight_js_lib_i-100ed6.chunk.js 6.85 MiB [emitted] (id hint: vendors)
    asset vendors-node_modules_date-fns_esm_locale_index_js.chunk.js 3.4 MiB [emitted] (id hint: vendors)
    asset content-type-builder.chunk.js 993 KiB [emitted] (name: content-type-builder) (id hint: vendors)
    + 35 assets
  + 153 assets
assets by info 19.4 KiB [immutable]
  assets by path *.svg 14 KiB
    assets by chunk 12.5 KiB (auxiliary name: Admin_homePage) 3 assets
    + 2 assets
  assets by path *.png 5.36 KiB
    asset 19eb2dfcf2603eb55733.png 2.84 KiB [emitted] [immutable] [from: .cache/admin/src/assets/images/onboarding-preview.png] (auxiliary name: Admin-authenticatedApp)
    asset 27d16aefee06412db90a.png 2.52 KiB [emitted] [immutable] [from: .cache/admin/src/pages/HomePage/assets/strapi-cloud-background.png] (auxiliary name: Admin_homePage)
asset index.html 872 bytes [emitted]
Entrypoint main 15.3 MiB = runtime~main.bundle.js 51 KiB main.bundle.js 15.3 MiB
orphan modules 688 KiB [orphan] 349 modules
runtime modules 33.8 KiB 19 modules
modules by path ./node_modules/ 9.78 MiB
  javascript modules 9.22 MiB 2779 modules
  json modules 566 KiB
    optional modules 494 KiB [optional] 104 modules
    + 7 modules
modules by path ./.cache/ 3.08 MiB (javascript) 19.4 KiB (asset)
  javascript modules 1.77 MiB 649 modules
  json modules 1.32 MiB 35 modules
  asset modules 996 bytes (javascript) 19.4 KiB (asset) 8 modules
+ 7 modules

WARNING in ./.cache/admin/src/content-manager/pages/App/index.js 75:483-491
export 'NotFound' (imported as 'NotFound') was not found in '@strapi/helper-plugin' (possible exports: AnErrorOccurred, AppInfosContext, AutoReloadOverlayBockerContext, CheckPagePermissions, CheckPermissions, ConfirmDialog, ContentBox, ContentManagerEditViewDataManagerContext, CustomFieldsProvider, DateTimePicker, DynamicTable, EmptyBodyTable, EmptyStateLayout, FilterListURLQuery, FilterPopoverURLQuery, Form, GenericInput, GuidedTourProvider, InjectionZone, LibraryProvider, Link, LinkButton, LoadingIndicatorPage, NoContent, NoMedia, NoPermissions, NotAllowedInput, NotificationsContext, NotificationsProvider, OverlayBlockerContext, PageSizeURLQuery, PaginationURLQuery, RBACProviderContext, ReactSelect, RelativeTime, RemoveRoundedButton, SearchURLQuery, SettingsPageTitle, SortIcon, Status, StopPropagation, StrapiAppProvider, TrackingContext, TrackingProvider, auth, contentManagementUtilRemoveFieldsFromData, difference, findMatchingPermissions, formatContentTypeData, getAPIInnerErrors, getFetchClient, getFileExtension, getOtherInfos, getType, getYupInnerErrors, hasPermissions, normalizeAPIError, onRowClick, prefixFileUrlWithBackendUrl, prefixPluginTranslations, pxToRem, request, setHexOpacity, stopPropagation, to, translatedErrors, useAPIErrorHandler, useAppInfos, useAutoReloadOverlayBlocker, useCMEditViewDataManager, useCustomFields, useFetchClient, useFocusWhenNavigate, useGuidedTour, useLibrary, useLockScroll, useNotification, useOverlayBlocker, usePersistentState, useQuery, useQueryParams, useRBAC, useRBACProvider, useSelectionState, useStrapiApp, useTracking, wrapAxiosInstance)
 @ ./.cache/admin/src/pages/Admin/index.js 17:8-20:3
 @ ./.cache/admin/src/components/PluginsInitializer/index.js 5:0-38 28:45-50
 @ ./.cache/admin/src/components/AuthenticatedApp/index.js 15:0-55 95:229-247
 @ ./.cache/admin/src/pages/App/index.js 27:8-30:3
 @ ./.cache/admin/src/StrapiApp.js 14:0-30 394:110-113
 @ ./.cache/admin/src/index.js 44:26-47:3

WARNING in ./.cache/admin/src/pages/MarketplacePage/components/EmptyNpmPackageSearch/index.js 9:394-412
export 'EmptyStateDocument' (imported as 'EmptyStateDocument') was not found in '@strapi/icons' (possible exports: Alien, Apps, Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Attachment, Bell, Bold, Book, Boolean, Briefcase, Brush, BulletList, Calendar, Car, CarretDown, CarretUp, Cast, ChartBubble, ChartCircle, ChartPie, Check, CheckCircle, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clock, Cloud, CloudUpload, Code, CodeSquare, Cog, Collapse, CollectionType, Command, Component, Connector, Crop, Cross, CrossCircle, Crown, Cup, Cursor, Dashboard, Database, Date, Discord, Discourse, Discuss, Doctor, Dot, Download, Drag, Duplicate, DynamicZone, Earth, EarthStriked, Email, EmotionHappy, EmotionUnhappy, EmptyDocuments, EmptyPermissions, EmptyPictures, Enumeration, Envelop, Equalizer, ExclamationMarkCircle, Exit, Expand, ExternalLink, Eye, EyeStriked, Facebook, Feather, FeatherSquare, File, FileError, FilePdf, Filter, Folder, Gate, Gift, Github, GlassesSquare, Globe, GraphQl, Grid, HandHeart, Hashtag, Headphone, Heart, House, IndentDecrease, IndentIncrease, Information, InformationSquare, Italic, Json, Key, Landscape, LandscapeSmall, Layer, Layout, Lightbulb, Link, LinkSmall, List, Loader, Lock, Magic, Mail, ManyToMany, ManyToOne, ManyWays, Media, Medium, MenuBurger, Message, Microphone, Minus, MinusOutlined, Monitor, Moon, More, Move, Music, Number, NumberList, OneToMany, OneToOne, OneWay, OnholdCarretDown, OnholdCarretUp, Paint, PaintBrush, PaperPlane, Password, Pencil, Phone, Picture, PicturePlus, Pin, PinMap, Plane, Play, PlaySquare, Plus, PlusCircle, PriceTag, Puzzle, Question, Quote, QuoteClosed, Reddit, Refresh, Relation, Repeat, Restaurant, RichText, Rocket, Rotate, Scissors, Search, SearchIcon, Seed, Server, Shield, Shirt, ShoppingCart, SingleType, Slideshow, Spinner, Stack, Star, Store, Strapi, StrikeThrough, Sun, Television, Text, ThumbDown, ThumbUp, Train, Trash, Twitter, Typhoon, Uid, Underline, Upload, User, VolumeMute, VolumeUp, Walk, Wheelchair, Write)
 @ ./.cache/admin/src/pages/MarketplacePage/index.js 32:0-71 234:201-222 244:154-175
 @ ./.cache/admin/src/pages/Admin/index.js 33:8-36:3
 @ ./.cache/admin/src/components/PluginsInitializer/index.js 5:0-38 28:45-50
 @ ./.cache/admin/src/components/AuthenticatedApp/index.js 15:0-55 95:229-247
 @ ./.cache/admin/src/pages/App/index.js 27:8-30:3
 @ ./.cache/admin/src/StrapiApp.js 14:0-30 394:110-113
 @ ./.cache/admin/src/index.js 44:26-47:3

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' (possible exports: Alien, Apps, Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Attachment, Bell, Bold, Book, Boolean, Briefcase, Brush, BulletList, Calendar, Car, CarretDown, CarretUp, Cast, ChartBubble, ChartCircle, ChartPie, Check, CheckCircle, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clock, Cloud, CloudUpload, Code, CodeSquare, Cog, Collapse, CollectionType, Command, Component, Connector, Crop, Cross, CrossCircle, Crown, Cup, Cursor, Dashboard, Database, Date, Discord, Discourse, Discuss, Doctor, Dot, Download, Drag, Duplicate, DynamicZone, Earth, EarthStriked, Email, EmotionHappy, EmotionUnhappy, EmptyDocuments, EmptyPermissions, EmptyPictures, Enumeration, Envelop, Equalizer, ExclamationMarkCircle, Exit, Expand, ExternalLink, Eye, EyeStriked, Facebook, Feather, FeatherSquare, File, FileError, FilePdf, Filter, Folder, Gate, Gift, Github, GlassesSquare, Globe, GraphQl, Grid, HandHeart, Hashtag, Headphone, Heart, House, IndentDecrease, IndentIncrease, Information, InformationSquare, Italic, Json, Key, Landscape, LandscapeSmall, Layer, Layout, Lightbulb, Link, LinkSmall, List, Loader, Lock, Magic, Mail, ManyToMany, ManyToOne, ManyWays, Media, Medium, MenuBurger, Message, Microphone, Minus, MinusOutlined, Monitor, Moon, More, Move, Music, Number, NumberList, OneToMany, OneToOne, OneWay, OnholdCarretDown, OnholdCarretUp, Paint, PaintBrush, PaperPlane, Password, Pencil, Phone, Picture, PicturePlus, Pin, PinMap, Plane, Play, PlaySquare, Plus, PlusCircle, PriceTag, Puzzle, Question, Quote, QuoteClosed, Reddit, Refresh, Relation, Repeat, Restaurant, RichText, Rocket, Rotate, Scissors, Search, SearchIcon, Seed, Server, Shield, Shirt, ShoppingCart, SingleType, Slideshow, Spinner, Stack, Star, Store, Strapi, StrikeThrough, Sun, Television, Text, ThumbDown, ThumbUp, Train, Trash, Twitter, Typhoon, Uid, Underline, Upload, User, VolumeMute, VolumeUp, Walk, Wheelchair, Write)
 @ ./node_modules/@strapi/plugin-content-type-builder/admin/src/components/AttributeOptions/CustomFieldsList/index.js 5:0-49 14:47-62
 @ ./node_modules/@strapi/plugin-content-type-builder/admin/src/components/AttributeOptions/index.js 18:0-50 37:266-282
 @ ./node_modules/@strapi/plugin-content-type-builder/admin/src/components/FormModal/index.js 35:0-51 764:4-20
 @ ./node_modules/@strapi/plugin-content-type-builder/admin/src/components/DataManagerProvider/index.js 27:0-37 462:223-232
 @ ./node_modules/@strapi/plugin-content-type-builder/admin/src/pages/App/index.js 9:0-71 32:271-290
 @ ./node_modules/@strapi/plugin-content-type-builder/admin/src/index.js 21:32-24:9
 @ ./node_modules/@strapi/plugin-content-type-builder/strapi-admin.js 2:0-47
 @ ./.cache/admin/src/plugins.js 3:0-107 9:26-44
 @ ./.cache/admin/src/index.js 7:0-32 49:16-23

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' (possible exports: Alien, Apps, Archive, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, Attachment, Bell, Bold, Book, Boolean, Briefcase, Brush, BulletList, Calendar, Car, CarretDown, CarretUp, Cast, ChartBubble, ChartCircle, ChartPie, Check, CheckCircle, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clock, Cloud, CloudUpload, Code, CodeSquare, Cog, Collapse, CollectionType, Command, Component, Connector, Crop, Cross, CrossCircle, Crown, Cup, Cursor, Dashboard, Database, Date, Discord, Discourse, Discuss, Doctor, Dot, Download, Drag, Duplicate, DynamicZone, Earth, EarthStriked, Email, EmotionHappy, EmotionUnhappy, EmptyDocuments, EmptyPermissions, EmptyPictures, Enumeration, Envelop, Equalizer, ExclamationMarkCircle, Exit, Expand, ExternalLink, Eye, EyeStriked, Facebook, Feather, FeatherSquare, File, FileError, FilePdf, Filter, Folder, Gate, Gift, Github, GlassesSquare, Globe, GraphQl, Grid, HandHeart, Hashtag, Headphone, Heart, House, IndentDecrease, IndentIncrease, Information, InformationSquare, Italic, Json, Key, Landscape, LandscapeSmall, Layer, Layout, Lightbulb, Link, LinkSmall, List, Loader, Lock, Magic, Mail, ManyToMany, ManyToOne, ManyWays, Media, Medium, MenuBurger, Message, Microphone, Minus, MinusOutlined, Monitor, Moon, More, Move, Music, Number, NumberList, OneToMany, OneToOne, OneWay, OnholdCarretDown, OnholdCarretUp, Paint, PaintBrush, PaperPlane, Password, Pencil, Phone, Picture, PicturePlus, Pin, PinMap, Plane, Play, PlaySquare, Plus, PlusCircle, PriceTag, Puzzle, Question, Quote, QuoteClosed, Reddit, Refresh, Relation, Repeat, Restaurant, RichText, Rocket, Rotate, Scissors, Search, SearchIcon, Seed, Server, Shield, Shirt, ShoppingCart, SingleType, Slideshow, Spinner, Stack, Star, Store, Strapi, StrikeThrough, Sun, Television, Text, ThumbDown, ThumbUp, Train, Trash, Twitter, Typhoon, Uid, Underline, Upload, User, VolumeMute, VolumeUp, Walk, Wheelchair, Write)
 @ ./node_modules/@strapi/plugin-upload/admin/src/pages/App/MediaLibrary/components/EmptyOrNoPermissions.js 6:0-65 36:4-15
 @ ./node_modules/@strapi/plugin-upload/admin/src/pages/App/MediaLibrary/index.js 41:0-73 261:4-24
 @ ./node_modules/@strapi/plugin-upload/admin/src/pages/App/index.js 7:0-46 31:498-510
 @ ./node_modules/@strapi/plugin-upload/admin/src/index.js 21:32-24:9
 @ ./node_modules/@strapi/plugin-upload/strapi-admin.js 2:0-47
 @ ./.cache/admin/src/plugins.js 5:0-81 11:12-18
 @ ./.cache/admin/src/index.js 7:0-32 49:16-23

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' (possible exports: AnErrorOccurred, AppInfosContext, AutoReloadOverlayBockerContext, CheckPagePermissions, CheckPermissions, ConfirmDialog, ContentBox, ContentManagerEditViewDataManagerContext, CustomFieldsProvider, DateTimePicker, DynamicTable, EmptyBodyTable, EmptyStateLayout, FilterListURLQuery, FilterPopoverURLQuery, Form, GenericInput, GuidedTourProvider, InjectionZone, LibraryProvider, Link, LinkButton, LoadingIndicatorPage, NoContent, NoMedia, NoPermissions, NotAllowedInput, NotificationsContext, NotificationsProvider, OverlayBlockerContext, PageSizeURLQuery, PaginationURLQuery, RBACProviderContext, ReactSelect, RelativeTime, RemoveRoundedButton, SearchURLQuery, SettingsPageTitle, SortIcon, Status, StopPropagation, StrapiAppProvider, TrackingContext, TrackingProvider, auth, contentManagementUtilRemoveFieldsFromData, difference, findMatchingPermissions, formatContentTypeData, getAPIInnerErrors, getFetchClient, getFileExtension, getOtherInfos, getType, getYupInnerErrors, hasPermissions, normalizeAPIError, onRowClick, prefixFileUrlWithBackendUrl, prefixPluginTranslations, pxToRem, request, setHexOpacity, stopPropagation, to, translatedErrors, useAPIErrorHandler, useAppInfos, useAutoReloadOverlayBlocker, useCMEditViewDataManager, useCustomFields, useFetchClient, useFocusWhenNavigate, useGuidedTour, useLibrary, useLockScroll, useNotification, useOverlayBlocker, usePersistentState, useQuery, useQueryParams, useRBAC, useRBACProvider, useSelectionState, useStrapiApp, useTracking, wrapAxiosInstance)
 @ ./node_modules/@strapi/plugin-users-permissions/admin/src/index.js 26:36-29:13
 @ ./node_modules/@strapi/plugin-users-permissions/strapi-admin.js 2:0-47
 @ ./.cache/admin/src/plugins.js 6:0-102 12:23-39
 @ ./.cache/admin/src/index.js 7:0-32 49:16-23

webpack 5.77.0 compiled with 5 warnings in 6400 ms
No errors found.

Steps to reproduce the behavior

  1. Create a new strapi project yarn create strapi-app my-project
  2. Choose Quickstart (recommended)
  3. Kill the process after everything has installed and started
  4. Run yarn develop --watch-admin

Expected behavior

Strapi should start without throwing errors.

Metadata

Metadata

Assignees

Labels

issue: bugIssue reporting a bugseverity: highIf it breaks the basic use of the productsource: core:adminSource is core/admin packagesource: plugin:users-permissionsSource is plugin/users-permissions packagestatus: confirmedConfirmed by a Strapi Team member or multiple community members

Type

No type

Projects

Status

Fixed/Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions