question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

byTracking plugin causes webpack error

See original GitHub issue

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

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gautamsicommented, Sep 3, 2020
    "@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"
1reaction
gautamsicommented, Aug 12, 2020

get latest version if you have stale version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'TypeError: arguments[i].apply is not a function' error when ...
Here's how to deal with one frequent error when working with Webpack. ... Most likely it is caused by invalid configuration of Webpack...
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
How to Prevent Webpack Error after npm Install?
This error happened because extract-text-webpack-plugin is not of the same major version as webpack is (3.x.x vs 2.x.x). Do this:
Read more >
Webpack throwing error when importing glimmer/tracking
broccoliBuilderErrorStack: Error: webpack returned errors to ... errors to ember-auto-import at Bundler -~- created here: -~- at new Plugin ...
Read more >
HashedModuleIdsPlugin - webpack
HashedModuleIdsPlugin. This plugin will cause hashes to be based on the relative path of the module, generating a four character string as the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found