New import path for Keystone 6 is not working

Hi there,

at the moment I stuck with a tutorial, because the import path for keystone is not working correctly. The developers from keystone changed the path name for the imports like they announced on their npm website:

This is the old import path:

import { text, password, relationship } from '@keystone-next/fields';

This is the new import path:

import { text, password, relationship } from '@keystone-6/fields';

Link to keystone updates

Link to the message from keystone

The dependencies for keystone are still written like “@keystone-next/XXX” but the new path is “keystone-6/XXX”. Do I also need to update the dependencies?

Screenshot 2022-04-27 at 22.46.08

No matter which import path I am useing, I always get an error and I am not able to start the server with keystone. I am not sure if I need to change something else in the package.json file to make the new path work correctly.

My question is, how can I use the new import path without an error? Do I need to update the dependencies within the package.json file?

Thanks for help!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.