Open XamHans opened 1 year ago
@craftjs/core package might not be installed. Just run this command, npm i @craftjs/core
.
I'm getting the same error when installing the basic example. There are dependency conflicts so core is not getting installed
I get the same, some dependencies issues present when running npm install
. I can install using npm install --legacy-peer-deps
but then there are issues with @carftjs/core
➜ basic git:(develop) ✗ npm i @craftjs/core
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: eslint-config-react-app@5.1.0
npm ERR! Found: eslint-plugin-flowtype@4.5.3
npm ERR! node_modules/eslint-plugin-flowtype
npm ERR! dev eslint-plugin-flowtype@"4.5.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-flowtype@"3.x" from eslint-config-react-app@5.1.0
npm ERR! node_modules/eslint-config-react-app
npm ERR! dev eslint-config-react-app@"5.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint-plugin-flowtype@3.13.0
npm ERR! node_modules/eslint-plugin-flowtype
npm ERR! peer eslint-plugin-flowtype@"3.x" from eslint-config-react-app@5.1.0
npm ERR! node_modules/eslint-config-react-app
npm ERR! dev eslint-config-react-app@"5.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/tristansaunders/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/tristansaunders/.npm/_logs/2022-09-27T10_40_13_521Z-debug-0.log
try yarn
instead of npm
yarn add @craftjs/core
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'
@martin-dimi try deleting node_modules
folder and then do yarn install
Tried everything, like deleting node_modules then install only core package, but it still doesnt work ?
I got it working by downgrading to @craftjs/core (utils and layers too for the other example) to ^0.2.0-beta.7
and using "@material-ui/core": "latest".
In any case, on a clean repo clone, npm/yarn don't seem to work out of the box it seems.
Any update?
I am also running into similar issues.
I am also running into similar issues.
I managed to get it work via
This is what worked for me:
in the project root:
yarn install
yarn build
cd examples/landing
yarn install
yarn start
doesn't work
Temporary Solution Steps (Until Permanent Fix):
This workaround should address the issue temporarily until a permanent fix is implemented.
Thats happening in the landing example in the dev as well as main branch.