craft.js: Can't resolve '@craftjs/core' in landing example

./components/editor/RenderNode.tsx:1:0
Module not found: Can't resolve '@craftjs/core'
> 1 | import { useNode, useEditor } from '@craftjs/core';
  2 | import { ROOT_NODE } from '@craftjs/utils';
  3 | import React, { useEffect, useRef, useCallback } from 'react';
  4 | import ReactDOM from 'react-dom';

Thats happening in the landing example in the dev as well as main branch.

About this issue

Most upvoted comments

This is what worked for me:

in the project root:

yarn install
yarn build
cd examples/landing 
yarn install
yarn start

I managed to get it work via

  1. touch yarn.lock
  2. yarn
  3. yarn start

Same issue:

event - compiled successfully
event - build page: /
wait  - compiling...
info  - Using external babel configuration from /home/fridge/Documents/test/craft.js/examples/basic/.babelrc
error - ../../node_modules/@craftjs/core/dist/esm/index.js:1:0
Module not found: Can't resolve '@craftjs/utils'