keystone: byTracking plugin causes webpack error

Bug report

Describe the bug

A webpack error is thrown when I create new list with byTracking plugin. Without this plugin there is no error.

It seems like .ts type definition is in .js file, and there should not be, in line 102 of file: @keystonejs/list-plugins/node_modules/@keystonejs/app-admin-ui/client/components/ListTable.js

To Reproduce

Steps to reproduce the behaviour. Please provide code snippets or a repository:

  1. Init users and auth sample project
  2. Add new list with byTracking plugin:
const { atTracking, byTracking } = require('@keystonejs/list-plugins');
const { Text } = require('@keystonejs/fields');

// ... keystone int etc.

keystone.createList('Lesson',{
  fields: {
    name: { type: Text },
  },
  plugins: [
    atTracking(),
    byTracking(),
  ],
});

// ... module exports

  1. Run app.
  2. See error after admin login.

Expected behaviour

No error.

Screenshots

admin-error code-error

System information

  • OS: Pop_OS! (Ubuntu)
  • Browser: Chrome

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 22 (12 by maintainers)

Commits related to this issue

Most upvoted comments

    "@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-wysiwyg-tinymce": "^5.3.5",
    "@keystonejs/file-adapters": "^7.0.3",
    "@keystonejs/keystone": "^13.1.0",
    "@keystonejs/list-plugins": "^7.0.5",
    "@keystonejs/server-side-graphql-client": "^1.1.1",
    "connect-mongo": "^3.2.0",
    "cross-env": "^7.0.0",
    "dotenv": "^8.2.0",
    "esm": "^3.2.25",
    "express-session": "^1.17.1",
    "firebase-admin": "^9.1.1",
    "winston": "^3.3.3",
    "winston-daily-rotate-file": "^4.5.0"

get latest version if you have stale version.