frames.js icon indicating copy to clipboard operation
frames.js copied to clipboard

No Working Examples

Open adraffy opened this issue 1 year ago • 2 comments

https://github.com/framesjs/frames.js/tree/main/templates/next-starter-with-examples

  1. node --versionv20.8.0
  2. git clone https://github.com/framesjs/frames.js.git
  3. cd frames.js
  4. yarn
  5. cd templates/next-starter-with-examples/
  6. yarn install
  7. yarn dev

[Error: ENOENT: no such file or directory, open '/data/code/frames.js/packages/debugger/.next/BUILD_ID']

Same for other tests, like express/

adraffy avatar Oct 08 '24 06:10 adraffy

These steps also don't work: https://framesjs.org/#start-with-framesjs-in-nextjs-in-three-steps yarn run dev clearly fails as it was never setup

I guess the missing step is: ...in your Next.js app


npm init frames@latest doesn't work:

Need to install the following packages:
[email protected]
Ok to proceed? (y)
┌  Welcome to frames.js
│
◇  Enter the name of your project
│  my-app
│
◇  Choose a template for the project
│  next-starter-with-examples
│
◆  Project successfully scaffolded in /data/code/my-app!
│
◇  Do you want to install the dependencies using yarn?
│  Yes
│
│  Installing the dependencies...
│
■  Failed to install the dependencies, please install them manually.
npm ERR! code 1
npm ERR! path /data/code/
npm ERR! command failed
npm ERR! command sh -c create-frames

adraffy avatar Oct 08 '24 06:10 adraffy

@adraffy in case of cloned repository you have to run yarn dev in the root of repository this will run debugger and examples.

In case of npm init frames@latest, do you have yarn installed on your system? It seems you don't have yarn therefore you have to go to the project dir and run npm install instead.

michalkvasnicak avatar Oct 08 '24 07:10 michalkvasnicak