keystone-5 icon indicating copy to clipboard operation
keystone-5 copied to clipboard

Missing Admin UI css dependency

Open dilignt opened this issue 5 years ago • 2 comments

Bug report

Describe the bug

After yarn upgrade I get the following error on the page when opening the admin UI. The file is missing from the repo in node_modules.

ERROR in <dir>/node_modules/@keystonejs/fields/node_modules/@keystonejs/fields/types/CalendarDay/views/Field/dist/fields.esm.js
Module not found: Error: Can't resolve 'react-day-picker/dist/style.css' in '<dir>node_modules\@keystonejs\fields\node_modules\@keystonejs\fields\types\CalendarDay\views\Field\dist'

Expected behaviour

The admin UI should work correctly

Screenshots

image

System information

  • OS: Windows 10
  • Browser: Chrome
    "@keystonejs/adapter-mongoose": "^9.0.1",
    "@keystonejs/app-admin-ui": "^7.3.0",
    "@keystonejs/app-graphql": "^6.1.0",
    "@keystonejs/app-static": "^5.1.2",
    "@keystonejs/auth-password": "^5.1.13",
    "@keystonejs/fields": "^16.0.0",
    "@keystonejs/fields-cloudinary-image": "^2.1.4",
    "@keystonejs/fields-content": "^9.0.5",
    "@keystonejs/fields-wysiwyg-tinymce": "^5.3.15",
    "@keystonejs/file-adapters": "^7.0.8",
    "@keystonejs/keystone": "^13.1.1",
    "@keystonejs/list-plugins": "^7.1.1",
    "@keystonejs/server-side-graphql-client": "^1.1.0",
    "@keystonejs/utils": "^5.4.1",
    "body-parser": "^1.19.0",
    "connect-mongo": "^3.2.0",

dilignt avatar Feb 19 '21 15:02 dilignt

@dilignt You can temporarily resolve it by moving node_modules/react-day-picker/style.css to node_modules/react-day-picker/dist/style.css

kglns avatar Feb 20 '21 05:02 kglns

Thanks @kglns

dilignt avatar Feb 20 '21 10:02 dilignt